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@781
|
13 /*#define FONT "fixed"*/
|
meillo@779
|
14 #define NORMBGCOLOR "#333333"
|
meillo@779
|
15 #define NORMFGCOLOR "#bbbbbb"
|
meillo@779
|
16 #define SELBGCOLOR "#eec900"
|
meillo@779
|
17 #define SELFGCOLOR "#000000"
|
meillo@765
|
18
|
meillo@779
|
19 #define MODKEY Mod1Mask
|
meillo@779
|
20 #define NMASTER 1 /* clients in master area */
|
meillo@779
|
21 #define SNAP 5 /* pixel */
|
meillo@765
|
22
|
meillo@765
|
23 #define KEYS \
|
meillo@765
|
24 static Key key[] = { \
|
meillo@779
|
25 /* modifier key function argument */ \
|
meillo@779
|
26 { MODKEY|ShiftMask, XK_Return, spawn, "exec urxvt" }, \
|
meillo@782
|
27 { MODKEY, XK_F1, toggleview, "" }, \
|
meillo@782
|
28 { MODKEY, XK_F2, toggleview, "" }, \
|
meillo@782
|
29 { MODKEY, XK_F3, floattoggle, "" }, \
|
meillo@779
|
30 { MODKEY, XK_Tab, focusnext, "" }, \
|
meillo@779
|
31 { MODKEY, XK_asciicircum, spawn, "dmenu_run -fn '"FONT"' "\
|
meillo@765
|
32 "-nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, \
|
meillo@779
|
33 { MODKEY, XK_1, zoom, "" }, \
|
meillo@765
|
34 { MODKEY, XK_2, killclient, "" }, \
|
meillo@779
|
35 { MODKEY|ShiftMask, XK_q, quit, "" }, \
|
meillo@780
|
36 { MODKEY|ShiftMask, XK_x, spawn, "exec slock" }, \
|
meillo@779
|
37 { MODKEY|ShiftMask, XK_F4, spawn, "sudo /sbin/shutdown -h -t 3 now" }, \
|
meillo@779
|
38 { MODKEY, XK_space, togglemode, "" }, \
|
meillo@779
|
39 { MODKEY|ShiftMask, XK_space, togglefloat, "" }, \
|
meillo@779
|
40 { MODKEY, XK_plus, incnmaster, "" }, \
|
meillo@779
|
41 { MODKEY, XK_minus, decnmaster, "" }, \
|
meillo@782
|
42 { MODKEY, XK_3, toggletag, "" }, \
|
meillo@765
|
43 };
|
meillo@765
|
44
|
meillo@765
|
45 /* Query class:instance:title for regex matching info with following command:
|
meillo@765
|
46 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
|
meillo@765
|
47 #define RULES \
|
meillo@765
|
48 static Rule rule[] = { \
|
meillo@767
|
49 /* class, instance, title, tag (1=tag/0=untag/-1=curr), isfloat */ \
|
meillo@769
|
50 { "URxvt", NULL, NULL, 0, False }, \
|
meillo@769
|
51 { "MPlayer", NULL, NULL, -1, True }, \
|
meillo@781
|
52 { "sxiv", NULL, NULL, -1, False }, \
|
meillo@779
|
53 { NULL, NULL, "qiv", -1, False }, \
|
meillo@769
|
54 { "Gimp", NULL, NULL, 1, True }, \
|
meillo@769
|
55 { "", "", "", 1, False }, \
|
meillo@765
|
56 };
|