rev |
line source |
arg@146
|
1 /*
|
arg@146
|
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
|
arg@146
|
3 * See LICENSE file for license details.
|
arg@146
|
4 */
|
arg@146
|
5
|
arg@146
|
6 #define TAGS \
|
arg@220
|
7 const char *tags[] = { "work", "net", "fnord", NULL };
|
arg@164
|
8
|
arg@164
|
9 #define DEFMODE dotile /* dofloat */
|
arg@220
|
10 #define DEFTAG 0 /* index */
|
arg@215
|
11 #define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
|
arg@260
|
12 #define BGCOLOR "#0d121d"
|
arg@260
|
13 #define FGCOLOR "#eeeeee"
|
arg@260
|
14 #define BORDERCOLOR "#3f484d"
|
arg@164
|
15 #define MODKEY Mod1Mask
|
arg@171
|
16 #define MASTERW 60 /* percent */
|
arg@146
|
17
|
arg@152
|
18 #define KEYS \
|
arg@146
|
19 static Key key[] = { \
|
arg@262
|
20 /* modifier key function arguments */ \
|
arg@294
|
21 { MODKEY|ShiftMask, XK_Return, spawn, \
|
arg@294
|
22 { .cmd = "exec urxvt +sb -tr -bg black -fg '#eeeeee' -fn '"FONT"'" } }, \
|
arg@294
|
23 { MODKEY, XK_Tab, focusnext, { 0 } }, \
|
arg@294
|
24 { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \
|
arg@294
|
25 { MODKEY, XK_Return, zoom, { 0 } }, \
|
arg@294
|
26 { MODKEY, XK_m, togglemax, { 0 } }, \
|
arg@294
|
27 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
|
arg@294
|
28 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
|
arg@294
|
29 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
|
arg@294
|
30 { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \
|
arg@294
|
31 { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \
|
arg@294
|
32 { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \
|
arg@294
|
33 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
|
arg@294
|
34 { MODKEY, XK_space, togglemode, { 0 } }, \
|
arg@262
|
35 { MODKEY, XK_1, view, { .i = 0 } }, \
|
arg@262
|
36 { MODKEY, XK_2, view, { .i = 1 } }, \
|
arg@262
|
37 { MODKEY, XK_3, view, { .i = 2 } }, \
|
arg@263
|
38 { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \
|
arg@263
|
39 { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \
|
arg@263
|
40 { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \
|
arg@262
|
41 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
|
arg@146
|
42 };
|
arg@146
|
43
|
arg@146
|
44 #define RULES \
|
arg@146
|
45 static Rule rule[] = { \
|
arg@191
|
46 /* class:instance regex tags regex isfloat */ \
|
arg@191
|
47 { "Firefox.*", "net", False }, \
|
arg@191
|
48 { "Gimp.*", NULL, True}, \
|
arg@191
|
49 { "MPlayer.*", NULL, True}, \
|
arg@191
|
50 { "Acroread.*", NULL, True}, \
|
arg@146
|
51 };
|