rev |
line source |
meillo@765
|
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
|
meillo@765
|
2 * (C)opyright MMVIII markus schnalke <meillo at marmaro dot de>
|
meillo@765
|
3 * See LICENSE file for license details.
|
meillo@765
|
4 */
|
meillo@765
|
5
|
meillo@766
|
6 #define NAMETAGGED "Das Alles"
|
meillo@766
|
7 #define NAMEUNTAGGED "Das Nichts"
|
meillo@765
|
8
|
meillo@779
|
9 #define BORDERPX 1
|
meillo@779
|
10 #define DEFMODE domax /* dotile */
|
meillo@765
|
11
|
meillo@780
|
12 #define FONT "-*-terminus-medium-*-*-*-19-*-*-*-*-*-*-*"
|
meillo@779
|
13 #define NORMBGCOLOR "#333333"
|
meillo@779
|
14 #define NORMFGCOLOR "#bbbbbb"
|
meillo@779
|
15 #define SELBGCOLOR "#eec900"
|
meillo@779
|
16 #define SELFGCOLOR "#000000"
|
meillo@765
|
17
|
meillo@779
|
18 #define MODKEY Mod1Mask
|
meillo@779
|
19 #define NMASTER 1 /* clients in master area */
|
meillo@779
|
20 #define SNAP 5 /* pixel */
|
meillo@765
|
21
|
meillo@765
|
22 #define KEYS \
|
meillo@765
|
23 static Key key[] = { \
|
meillo@779
|
24 /* modifier key function argument */ \
|
meillo@779
|
25 { MODKEY|ShiftMask, XK_Return, spawn, "exec urxvt" }, \
|
meillo@779
|
26 { MODKEY, XK_F1, toggleview, "" }, \
|
meillo@779
|
27 { MODKEY, XK_F2, toggleview, "" }, \
|
meillo@779
|
28 { MODKEY, XK_Tab, focusnext, "" }, \
|
meillo@779
|
29 { MODKEY, XK_asciicircum, spawn, "dmenu_run -fn '"FONT"' "\
|
meillo@765
|
30 "-nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, \
|
meillo@779
|
31 { MODKEY, XK_1, zoom, "" }, \
|
meillo@765
|
32 { MODKEY, XK_2, killclient, "" }, \
|
meillo@779
|
33 { MODKEY|ShiftMask, XK_q, quit, "" }, \
|
meillo@780
|
34 { MODKEY|ShiftMask, XK_x, spawn, "exec slock" }, \
|
meillo@779
|
35 { MODKEY|ShiftMask, XK_F4, spawn, "sudo /sbin/shutdown -h -t 3 now" }, \
|
meillo@779
|
36 { MODKEY, XK_space, togglemode, "" }, \
|
meillo@779
|
37 { MODKEY|ShiftMask, XK_space, togglefloat, "" }, \
|
meillo@779
|
38 { MODKEY, XK_plus, incnmaster, "" }, \
|
meillo@779
|
39 { MODKEY, XK_minus, decnmaster, "" }, \
|
meillo@779
|
40 { MODKEY, XK_3, toggletag, "" }, \
|
meillo@765
|
41 };
|
meillo@765
|
42
|
meillo@765
|
43 /* Query class:instance:title for regex matching info with following command:
|
meillo@765
|
44 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
|
meillo@765
|
45 #define RULES \
|
meillo@765
|
46 static Rule rule[] = { \
|
meillo@767
|
47 /* class, instance, title, tag (1=tag/0=untag/-1=curr), isfloat */ \
|
meillo@769
|
48 { "URxvt", NULL, NULL, 0, False }, \
|
meillo@769
|
49 { "MPlayer", NULL, NULL, -1, True }, \
|
meillo@779
|
50 { NULL, NULL, "qiv", -1, False }, \
|
meillo@769
|
51 { "Gimp", NULL, NULL, 1, True }, \
|
meillo@769
|
52 { "", "", "", 1, False }, \
|
meillo@765
|
53 };
|