summaryrefslogtreecommitdiffstats
path: root/config.arg.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-25 13:02:07 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-25 13:02:07 +0200
commitf1fe19bc2b0b1744a82551ef2580e621231cd97e (patch)
treef8089ad9e8fbd44e1f4944f672a24c8cadfc4062 /config.arg.h
parentnew color stuff/new rendering stuff (diff)
downloaddwm-f1fe19bc2b0b1744a82551ef2580e621231cd97e.tar.gz
dwm-f1fe19bc2b0b1744a82551ef2580e621231cd97e.zip
restored config.arg.h
Diffstat (limited to 'config.arg.h')
-rw-r--r--config.arg.h28
1 files changed, 12 insertions, 16 deletions
diff --git a/config.arg.h b/config.arg.h
index 7716916..9423833 100644
--- a/config.arg.h
+++ b/config.arg.h
@@ -4,11 +4,11 @@
4 */ 4 */
5 5
6#define TAGS \ 6#define TAGS \
7const char *tags[] = { "1", "2", "3", "4", "5", NULL }; 7const char *tags[] = { "work", "net", "fnord", NULL };
8 8
9#define DEFMODE dotile /* dofloat */ 9#define DEFMODE dotile /* dofloat */
10 10
11#define FONT "fixed" 11#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
12#define SELBGCOLOR "#666699" 12#define SELBGCOLOR "#666699"
13#define SELFGCOLOR "#eeeeee" 13#define SELFGCOLOR "#eeeeee"
14#define NORMBGCOLOR "#333366" 14#define NORMBGCOLOR "#333366"
@@ -22,41 +22,37 @@ const char *tags[] = { "1", "2", "3", "4", "5", NULL };
22#define KEYS \ 22#define KEYS \
23static Key key[] = { \ 23static Key key[] = { \
24 /* modifier key function arguments */ \ 24 /* modifier key function arguments */ \
25 { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec xterm" } }, \ 25 { MODKEY|ShiftMask, XK_Return, spawn, \
26 { MODKEY, XK_Tab, focusnext, { 0 } }, \ 26 { .cmd = "exec uxterm -bg '#e0e0e0' -fg '#000000' -cr '#000000' +sb -fn '"FONT"'" } }, \
27 { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \ 27 { MODKEY, XK_p, spawn, \
28 { .cmd = "exec `ls -lL /usr/bin /usr/X11R6/bin /usr/local/bin 2>/dev/null | " \
29 "awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u | dmenu`" } }, \
30 { MODKEY, XK_j, focusnext, { 0 } }, \
31 { MODKEY, XK_k, focusprev, { 0 } }, \
28 { MODKEY, XK_Return, zoom, { 0 } }, \ 32 { MODKEY, XK_Return, zoom, { 0 } }, \
29 { MODKEY, XK_m, togglemax, { 0 } }, \ 33 { MODKEY, XK_m, togglemax, { 0 } }, \
30 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 34 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
31 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 35 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
32 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ 36 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
33 { MODKEY|ShiftMask, XK_4, tag, { .i = 3 } }, \
34 { MODKEY|ShiftMask, XK_5, tag, { .i = 4 } }, \
35 { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \ 37 { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \
36 { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \ 38 { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \
37 { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \ 39 { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \
38 { MODKEY|ControlMask|ShiftMask, XK_4, toggletag, { .i = 3 } }, \
39 { MODKEY|ControlMask|ShiftMask, XK_5, toggletag, { .i = 4 } }, \
40 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ 40 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
41 { MODKEY, XK_space, togglemode, { 0 } }, \ 41 { MODKEY, XK_space, togglemode, { 0 } }, \
42 { MODKEY, XK_1, view, { .i = 0 } }, \ 42 { MODKEY, XK_1, view, { .i = 0 } }, \
43 { MODKEY, XK_2, view, { .i = 1 } }, \ 43 { MODKEY, XK_2, view, { .i = 1 } }, \
44 { MODKEY, XK_3, view, { .i = 2 } }, \ 44 { MODKEY, XK_3, view, { .i = 2 } }, \
45 { MODKEY, XK_4, view, { .i = 3 } }, \
46 { MODKEY, XK_5, view, { .i = 4 } }, \
47 { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \ 45 { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \
48 { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \ 46 { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \
49 { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \ 47 { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \
50 { MODKEY|ControlMask, XK_4, toggleview, { .i = 3 } }, \
51 { MODKEY|ControlMask, XK_5, toggleview, { .i = 4 } }, \
52 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ 48 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
53}; 49};
54 50
55/* Query class:instance:title for regex matching info with following command:
56 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/{ printf("%s\n",$2) }' */
57#define RULES \ 51#define RULES \
58static Rule rule[] = { \ 52static Rule rule[] = { \
59 /* class:instance:title regex tags regex isfloat */ \ 53 /* class:instance:title regex tags regex isfloat */ \
60 { "Firefox.*", "2", False }, \ 54 { "Firefox.*", "net", False }, \
61 { "Gimp.*", NULL, True}, \ 55 { "Gimp.*", NULL, True}, \
56 { "MPlayer.*", NULL, True}, \
57 { "Acroread.*", NULL, True}, \
62}; 58};