Mercurial > hg > index.fcgi > dwm > dwm-3.6.1-12pba
comparison config.arg.h @ 2:de6bb7885c97
add right-click eventon layout icon to go to previous layout
author | pang@hit-nxdomain.opendns.com |
---|---|
date | Tue, 24 Mar 2009 12:52:45 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6b5b6d62d66c |
---|---|
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com> | |
2 * See LICENSE file for license details. | |
3 */ | |
4 | |
5 /* appearance */ | |
6 #define BORDERPX 1 | |
7 #define FONT "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" | |
8 #define NORMBORDERCOLOR "#333" | |
9 #define NORMBGCOLOR "#222" | |
10 #define NORMFGCOLOR "#ccc" | |
11 #define SELBORDERCOLOR "#69c" | |
12 #define SELBGCOLOR "#555" | |
13 #define SELFGCOLOR "#fff" | |
14 #define TOPBAR True /* False */ | |
15 | |
16 /* behavior */ | |
17 #define SNAP 40 /* pixel */ | |
18 #define TAGS \ | |
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 }; | |
28 | |
29 /* layout(s) */ | |
30 #define LAYOUTS \ | |
31 static Layout layout[] = { \ | |
32 /* symbol function */ \ | |
33 { "[]=", tile }, /* first entry is default */ \ | |
34 { "><>", versatile }, \ | |
35 }; | |
36 #define MASTER 600 /* per thousand */ | |
37 #define NMASTER 1 /* clients in master area */ | |
38 | |
39 /* key definitions */ | |
40 #define MODKEY Mod1Mask | |
41 #define KEYS \ | |
42 static Key key[] = { \ | |
43 /* modifier key function argument */ \ | |
44 { MODKEY|ShiftMask, XK_Return, spawn, \ | |
45 { .cmd = "exec uxterm -bg '#222' -fg '#eee' -cr '#eee' +sb -fn '"FONT"'" } }, \ | |
46 { MODKEY, XK_p, spawn, \ | |
47 { .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \ | |
48 " | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' " \ | |
49 "-sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"')\" && exec $exe" } }, \ | |
50 { MODKEY, XK_j, focusnext, { 0 } }, \ | |
51 { MODKEY, XK_k, focusprev, { 0 } }, \ | |
52 { MODKEY, XK_Return, zoom, { 0 } }, \ | |
53 { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ | |
54 { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ | |
55 { MODKEY, XK_i, incnmaster, { .i = 1 } }, \ | |
56 { MODKEY, XK_d, incnmaster, { .i = -1 } }, \ | |
57 { MODKEY|ShiftMask, XK_0, tag, { .i = -1 } }, \ | |
58 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ | |
59 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ | |
60 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ | |
61 { MODKEY|ShiftMask, XK_4, tag, { .i = 3 } }, \ | |
62 { MODKEY|ShiftMask, XK_5, tag, { .i = 4 } }, \ | |
63 { MODKEY|ShiftMask, XK_6, tag, { .i = 5 } }, \ | |
64 { MODKEY|ShiftMask, XK_7, tag, { .i = 6 } }, \ | |
65 { MODKEY|ShiftMask, XK_8, tag, { .i = 7 } }, \ | |
66 { MODKEY|ShiftMask, XK_9, tag, { .i = 8 } }, \ | |
67 { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \ | |
68 { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \ | |
69 { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \ | |
70 { MODKEY|ControlMask|ShiftMask, XK_4, toggletag, { .i = 3 } }, \ | |
71 { MODKEY|ControlMask|ShiftMask, XK_5, toggletag, { .i = 4 } }, \ | |
72 { MODKEY|ControlMask|ShiftMask, XK_6, toggletag, { .i = 5 } }, \ | |
73 { MODKEY|ControlMask|ShiftMask, XK_7, toggletag, { .i = 6 } }, \ | |
74 { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, { .i = 7 } }, \ | |
75 { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, { .i = 8 } }, \ | |
76 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ | |
77 { MODKEY, XK_space, setlayout, { .i = -1 } }, \ | |
78 { MODKEY|ShiftMask, XK_space, toggleversatile,{ 0 } }, \ | |
79 { MODKEY, XK_0, view, { .i = -1 } }, \ | |
80 { MODKEY, XK_1, view, { .i = 0 } }, \ | |
81 { MODKEY, XK_2, view, { .i = 1 } }, \ | |
82 { MODKEY, XK_3, view, { .i = 2 } }, \ | |
83 { MODKEY, XK_4, view, { .i = 3 } }, \ | |
84 { MODKEY, XK_5, view, { .i = 4 } }, \ | |
85 { MODKEY, XK_6, view, { .i = 5 } }, \ | |
86 { MODKEY, XK_7, view, { .i = 6 } }, \ | |
87 { MODKEY, XK_8, view, { .i = 7 } }, \ | |
88 { MODKEY, XK_9, view, { .i = 8 } }, \ | |
89 { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \ | |
90 { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \ | |
91 { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \ | |
92 { MODKEY|ControlMask, XK_4, toggleview, { .i = 3 } }, \ | |
93 { MODKEY|ControlMask, XK_5, toggleview, { .i = 4 } }, \ | |
94 { MODKEY|ControlMask, XK_6, toggleview, { .i = 5 } }, \ | |
95 { MODKEY|ControlMask, XK_7, toggleview, { .i = 6 } }, \ | |
96 { MODKEY|ControlMask, XK_8, toggleview, { .i = 7 } }, \ | |
97 { MODKEY|ControlMask, XK_9, toggleview, { .i = 8 } }, \ | |
98 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ | |
99 }; |