aewl
view config.arg.h @ 277:1e7fa455e3b4
applied the saner patch (removed the pathetic one)
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Mon, 14 Aug 2006 15:33:23 +0200 |
parents | 118d3e010e5e |
children | 5f5c56e104de |
line source
1 /*
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
4 */
6 #define TAGS \
7 const char *tags[] = { "work", "net", "fnord", NULL };
9 #define DEFMODE dotile /* dofloat */
10 #define DEFTAG 0 /* index */
11 #define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
12 #define BGCOLOR "#0d121d"
13 #define FGCOLOR "#eeeeee"
14 #define BORDERCOLOR "#3f484d"
15 #define MODKEY Mod1Mask
16 #define NUMLOCKMASK Mod2Mask
17 #define MASTERW 60 /* percent */
19 #define KEYS \
20 static Key key[] = { \
21 /* modifier key function arguments */ \
22 { MODKEY, XK_1, view, { .i = 0 } }, \
23 { MODKEY, XK_2, view, { .i = 1 } }, \
24 { MODKEY, XK_3, view, { .i = 2 } }, \
25 { MODKEY, XK_j, focusnext, { 0 } }, \
26 { MODKEY, XK_k, focusprev, { 0 } }, \
27 { MODKEY, XK_m, togglemax, { 0 } }, \
28 { MODKEY, XK_p, spawn, \
29 { .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \
30 "awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | dmenu`" } }, \
31 { MODKEY, XK_space, togglemode, { 0 } }, \
32 { MODKEY, XK_Return, zoom, { 0 } }, \
33 { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \
34 { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \
35 { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \
36 { MODKEY|ShiftMask, XK_1, replacetag, { .i = 0 } }, \
37 { MODKEY|ShiftMask, XK_2, replacetag, { .i = 1 } }, \
38 { MODKEY|ShiftMask, XK_3, replacetag, { .i = 2 } }, \
39 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
40 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
41 { MODKEY|ShiftMask, XK_Return, spawn, \
42 { .cmd = "exec urxvt +sb -tr -bg black -fg '#eeeeee' -cr '#eeeeee' +sb " \
43 "-fn '-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*'" } }, \
44 { MODKEY|ControlMask|ShiftMask, XK_1, appendtag, { .i = 0 } }, \
45 { MODKEY|ControlMask|ShiftMask, XK_2, appendtag, { .i = 1 } }, \
46 { MODKEY|ControlMask|ShiftMask, XK_3, appendtag, { .i = 2 } }, \
47 };
49 #define RULES \
50 static Rule rule[] = { \
51 /* class:instance regex tags regex isfloat */ \
52 { "Firefox.*", "net", False }, \
53 { "Gimp.*", NULL, True}, \
54 { "MPlayer.*", NULL, True}, \
55 { "Acroread.*", NULL, True}, \
56 };