1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com> |
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com> |
2 * See LICENSE file for license details. |
2 * See LICENSE file for license details. |
3 */ |
3 */ |
4 |
4 |
|
5 /* appearance */ |
5 #define BORDERPX 1 |
6 #define BORDERPX 1 |
6 #define FONT "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" |
7 #define FONT "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" |
7 #define NORMBORDERCOLOR "#333" |
8 #define NORMBORDERCOLOR "#333" |
8 #define NORMBGCOLOR "#222" |
9 #define NORMBGCOLOR "#222" |
9 #define NORMFGCOLOR "#ccc" |
10 #define NORMFGCOLOR "#ccc" |
10 #define SELBORDERCOLOR "#69c" |
11 #define SELBORDERCOLOR "#69c" |
11 #define SELBGCOLOR "#555" |
12 #define SELBGCOLOR "#555" |
12 #define SELFGCOLOR "#fff" |
13 #define SELFGCOLOR "#fff" |
13 |
|
14 #define MASTER 600 /* per thousand */ |
|
15 #define MODKEY Mod1Mask |
|
16 #define NMASTER 1 /* clients in master area */ |
|
17 #define SNAP 40 /* pixel */ |
|
18 #define TOPBAR True /* False */ |
14 #define TOPBAR True /* False */ |
19 |
15 |
|
16 /* behavior */ |
|
17 #define SNAP 40 /* pixel */ |
20 #define TAGS \ |
18 #define TAGS \ |
21 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; |
19 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; |
|
20 #define RULES \ |
|
21 static Rule rule[] = { \ |
|
22 /* class:instance:title regex tags regex isversatile */ \ |
|
23 { "Firefox", "3", False }, \ |
|
24 { "Gimp", NULL, True }, \ |
|
25 { "MPlayer", NULL, True }, \ |
|
26 { "Acroread", NULL, True }, \ |
|
27 }; |
22 |
28 |
|
29 /* layout(s) */ |
23 #define LAYOUTS \ |
30 #define LAYOUTS \ |
24 static Layout layout[] = { \ |
31 static Layout layout[] = { \ |
25 /* symbol function */ \ |
32 /* symbol function */ \ |
26 { "[]=", tile }, /* first entry is default */ \ |
33 { "[]=", tile }, /* first entry is default */ \ |
27 { "><>", versatile }, \ |
34 { "><>", versatile }, \ |
28 }; |
35 }; |
|
36 #define MASTER 600 /* per thousand */ |
|
37 #define NMASTER 1 /* clients in master area */ |
29 |
38 |
|
39 /* key definitions */ |
|
40 #define MODKEY Mod1Mask |
30 #define KEYS \ |
41 #define KEYS \ |
31 static Key key[] = { \ |
42 static Key key[] = { \ |
32 /* modifier key function argument */ \ |
43 /* modifier key function argument */ \ |
33 { MODKEY|ShiftMask, XK_Return, spawn, \ |
44 { MODKEY|ShiftMask, XK_Return, spawn, \ |
34 { .cmd = "exec uxterm -bg '#222' -fg '#eee' -cr '#eee' +sb -fn '"FONT"'" } }, \ |
45 { .cmd = "exec uxterm -bg '#222' -fg '#eee' -cr '#eee' +sb -fn '"FONT"'" } }, \ |
84 { MODKEY|ControlMask, XK_7, toggleview, { .i = 6 } }, \ |
95 { MODKEY|ControlMask, XK_7, toggleview, { .i = 6 } }, \ |
85 { MODKEY|ControlMask, XK_8, toggleview, { .i = 7 } }, \ |
96 { MODKEY|ControlMask, XK_8, toggleview, { .i = 7 } }, \ |
86 { MODKEY|ControlMask, XK_9, toggleview, { .i = 8 } }, \ |
97 { MODKEY|ControlMask, XK_9, toggleview, { .i = 8 } }, \ |
87 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ |
98 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ |
88 }; |
99 }; |
89 |
|
90 #define RULES \ |
|
91 static Rule rule[] = { \ |
|
92 /* class:instance:title regex tags regex isversatile */ \ |
|
93 { "Firefox", "3", False }, \ |
|
94 { "Gimp", NULL, True }, \ |
|
95 { "MPlayer", NULL, True }, \ |
|
96 { "Acroread", NULL, True }, \ |
|
97 }; |
|