See LICENSE file for copyright and license details colors for some GTK

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/* See LICENSE file for copyright and license details. */
/* colors for some GTK themes */
/* Murrina Tangosque: #fcfcfc, #fcfcfc, #000000, #b4c2d1, #b4c2d1, #ffffff */
/* Murrina Brit: #262729, #262729, #fafafa, #262729, #e04613, #fafafa */
/* Hunny: #5c7567, #5c7567, #fafafa, #5c7567, #d5ddd3, #fafafa */
/* Clearlooks: #95b6e0, #95b6e0, #29292c, #95b6e0, #e3e1df, #29292c */
/* Midnight Dream: #94d4ef, #94d4ef, #414141, #94d4ef, #fefefe, #414141 */
/* PassionV2: #171717, #171717, #ffffff, #171717, #212121, #ffffff */
/* Gnursid: #ece9d8, #ece9d8, #000000, #b6cb96, #b6cb96, #2e3436 */
/* GummyGilouche-Basic: */
static const char font[] = "-artwiz-snap-*-*-*-*-10-*-*-*-*-*-*";
static const char normbordercolor[] = "#5c7567";
static const char normbgcolor[] = "#5c7567";
static const char normfgcolor[] = "#fafafa";
static const char selbordercolor[] = "#5c7567";
static const char selbgcolor[] = "#d5ddd3";
static const char selfgcolor[] = "#fafafa";
static unsigned int borderpx = 1; /* border pixel of windows */
static unsigned int snap = 32; /* snap pixel */
static Bool showbar = True; /* False means no bar */
static Bool topbar = True; /* False means bottom bar */
static Bool readin = True; /* False means do not read stdin */
/* tagging */
static const char tags[][MAXTAGLEN] = { "web", "irc", "im", "p2p", "dev", "mm", "img", "doc", "misc" };
static unsigned int tagset[] = {1, 1}; /* after start, first tag is selected */
static Rule rules[] = {
/* class instance title tags mask isfloating */
{ "Opera", NULL, NULL, 1, False },
{ "Xchat", NULL, NULL, 2, False },
{ "Gajim", NULL, NULL, 4, False },
{ "Deluge", NULL, NULL, 8, False },
{ "Gvim", NULL, NULL, 16, False },
{ "Designer", NULL, NULL, 16, True },
{ "Smplayer", NULL, NULL, 32, False },
{ "Gimp", NULL, NULL, 64, True },
{ "Gpicview", NULL, NULL, 64, False },
{ "Evince", NULL, NULL, 128, False },
{ "Djview4", NULL, NULL, 128, False },
{ "Notefinder", NULL, NULL, 128, False },
};
/* layout(s) */
static float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static Bool resizehints = True; /* False means respect size hints in tiled resizals */
static Layout layouts[] = {
/* symbol arrange function */
{ "[T]", tile }, /* first entry is default */
{ "[F]", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static const char *web[] = { "opera", NULL };
static const char *im[] = { "gajim", NULL };
static const char *irc[] = { "xchat", NULL };
static const char *peer[] = { "deluge", NULL };
static const char *ide[] = { "gvim", NULL };
static const char *mplayer[] = { "smplayer", NULL };
static const char *gimp[] = { "gimp", NULL };
static const char *viewer[] = { "gpicview", NULL };
static const char *pdf[] = { "evince", NULL };
static const char *djvu[] = { "djview4", NULL };
static const char *wiki[] = { "notefinder", NULL };
static const char *term[] = { "termit", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY|ControlMask, XK_w, spawn, {.v = web } },
{ MODKEY|ControlMask, XK_i, spawn, {.v = irc } },
{ MODKEY|ControlMask, XK_j, spawn, {.v = im } },
{ MODKEY|ControlMask, XK_t, spawn, {.v = peer } },
{ MODKEY|ControlMask, XK_d, spawn, {.v = ide } },
{ MODKEY|ControlMask, XK_p, spawn, {.v = mplayer } },
{ MODKEY|ControlMask, XK_g, spawn, {.v = gimp } },
{ MODKEY|ControlMask, XK_v, spawn, {.v = viewer } },
{ MODKEY|ControlMask, XK_u, spawn, {.v = djvu } },
{ MODKEY|ControlMask, XK_r, spawn, {.v = pdf } },
{ MODKEY|ControlMask, XK_n, spawn, {.v = wiki } },
{ MODKEY|ControlMask, XK_Return, spawn, {.v = term } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ControlMask, XK_q, quit, {0} },
};
/* button definitions */
/* click can be a tag number (starting at 0),
* ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = term } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};