unixwz0r

BSDBOX - DWM-6.1 - Twilight scheme (config.h)

Jan 25th, 2016
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 6.50 KB | None | 0 0
  1. /* BSDBOX Twilight Scheme DWM 6.1 config.h */
  2.  
  3. /* appearance */
  4. static const char *fonts[] = {
  5.     "Monaco:size=11"
  6. };
  7. static const char dmenufont[]       = "Monaco:size=11";
  8. static const char normbordercolor[] = "#222222";
  9. static const char normbgcolor[]     = "#181512";
  10. static const char normfgcolor[]     = "#FFFFD4";
  11. static const char selbordercolor[]  = "#C06D44";
  12. static const char selbgcolor[]      = "#C06D44";
  13. static const char selfgcolor[]      = "#FFFFD4";
  14. static const unsigned int borderpx  = 4;        /* border pixel of windows */
  15. static const unsigned int snap      = 32;       /* snap pixel */
  16. static const int showbar            = 1;        /* 0 means no bar */
  17. static const int topbar             = 1;        /* 0 means bottom bar */
  18.  
  19. /* tagging */
  20. static const char *tags[] = { "main", "net", "irc", "term", "edit", "fm", "graphic" };
  21.  
  22. static const Rule rules[] = {
  23.     /* xprop(1):
  24.      *  WM_CLASS(STRING) = instance, class
  25.      *  WM_NAME(STRING) = title
  26.      */
  27.     /* class      instance    title       tags mask     isfloating   monitor */
  28.     { "Gimp",     NULL,       NULL,       0,            1,           -1 },
  29.     { "Firefox",  NULL,       NULL,       1 << 8,       0,           -1 },
  30. };
  31.  
  32. /* layout(s) */
  33. static const float mfact     = 0.55; /* factor of master area size [0.05..0.95] */
  34. static const int nmaster     = 1;    /* number of clients in master area */
  35. static const int resizehints = 1;    /* 1 means respect size hints in tiled resizals */
  36.  
  37. static const Layout layouts[] = {
  38.     /* symbol     arrange function */
  39.     { "><>",      NULL },    /* first entry is default */
  40.     { "[]=",      tile },    /* no layout function means floating behavior */
  41.     { "[M]",      monocle },
  42. };
  43.  
  44. /* key definitions */
  45. #define MODKEY Mod1Mask
  46. #define TAGKEYS(KEY,TAG) \
  47.     { MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
  48.     { MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
  49.     { MODKEY|ShiftMask,             KEY,      tag,            {.ui = 1 << TAG} }, \
  50.     { MODKEY|ControlMask|ShiftMask, KEY,      toggletag,      {.ui = 1 << TAG} },
  51.  
  52. /* helper for spawning shell commands in the pre dwm-5.0 fashion */
  53. #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
  54.  
  55. /* commands */
  56. static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
  57. static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
  58. static const char *termcmd[]  = { "urxvt", "-e", "bash", NULL };
  59. static const char *irccmd[] = { "urxvt", "-e", "irssi", NULL };
  60. static const char *editcmd[] = { "geany", NULL };
  61. static const char *lxappcmd[] = { "lxappearance", NULL };
  62. static const char *filecmd[] = { "thunar", NULL };
  63. static const char *mccmd[] = { "urxvt", "-e", "mc", NULL };
  64. static const char *openshot[] = { "openshot", NULL };
  65. static const char *netcmd[] = { "firefox", NULL };
  66. static const char *gimpcmd[] = { "gimp", NULL };
  67. static const char *padcmd[] = { "leafpad", NULL };
  68. /* Black Template for Key Bindings
  69. static const char *blank[] = { "", NULL };
  70. static const char *blank[] = { "", NULL };
  71. */
  72. static Key keys[] = {
  73.     /* modifier                     key        function        argument */
  74.     { MODKEY,                       XK_p,      spawn,          {.v = dmenucmd } },
  75.     { MODKEY,                       XK_i,      spawn,          {.v = irccmd } },
  76.     { MODKEY,                       XK_e,      spawn,          {.v = editcmd } },
  77.     { MODKEY,                       XK_l,      spawn,          {.v = lxappcmd } },
  78.     { MODKEY,                       XK_t,      spawn,          {.v = termcmd } },
  79.     { MODKEY,                       XK_f,      spawn,          {.v = filecmd } },
  80.     { MODKEY,                       XK_w,      spawn,          {.v = netcmd } },
  81.     { MODKEY,                       XK_g,      spawn,          {.v = gimpcmd } },
  82.     { MODKEY,                       XK_m,      spawn,          {.v = mccmd } },
  83.     { MODKEY,                       XK_d,      spawn,          {.v = padcmd } },
  84.     { MODKEY,                       XK_b,      togglebar,      {0} },
  85.     { MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
  86.     { MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
  87.     { MODKEY,                       XK_Return, zoom,           {0} },
  88.     { MODKEY,                       XK_Tab,    view,           {0} },
  89.     { MODKEY,                       XK_c,      killclient,     {0} },
  90.     { MODKEY,                       XK_space,  setlayout,      {0} },
  91.     { MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
  92.     { MODKEY,                       XK_0,      view,           {.ui = ~0 } },
  93.     TAGKEYS(                        XK_1,                      0)
  94.     TAGKEYS(                        XK_2,                      1)
  95.     TAGKEYS(                        XK_3,                      2)
  96.     TAGKEYS(                        XK_4,                      3)
  97.     TAGKEYS(                        XK_5,                      4)
  98.     TAGKEYS(                        XK_6,                      5)
  99.     TAGKEYS(                        XK_7,                      6)
  100.     TAGKEYS(                        XK_8,                      7)
  101.     TAGKEYS(                        XK_9,                      8)
  102.     { MODKEY,                       XK_q,      quit,           {0} },
  103. };
  104.  
  105. /* button definitions */
  106. /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
  107. static Button buttons[] = {
  108.         /* click                event mask      button          function        argument */
  109.         { ClkLtSymbol,          0,              Button1,        setlayout,      {0} },
  110.         { ClkLtSymbol,          0,              Button3,        setlayout,      {.v = &layouts[2]} },
  111.         { ClkWinTitle,          0,              Button2,        zoom,           {0} },
  112.         { ClkStatusText,        0,              Button2,        spawn,          {.v = termcmd } },
  113.         { ClkClientWin,         MODKEY,         Button1,        movemouse,      {0} },
  114.         { ClkClientWin,         MODKEY,         Button2,        togglefloating, {0} },
  115.         { ClkClientWin,         MODKEY,         Button3,        resizemouse,    {0} },
  116.         { ClkTagBar,            0,              Button1,        view,           {0} },
  117.         { ClkTagBar,            0,              Button3,        toggleview,     {0} },
  118.         { ClkTagBar,            MODKEY,         Button1,        tag,            {0} },
  119.         { ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
  120. };
Advertisement
Add Comment
Please, Sign In to add comment