dwm-meillo
view config.arg.h @ 160:c8db0a825775
applied Sanders patches (numlock2)
author | arg@10ksloc.org |
---|---|
date | Wed, 02 Aug 2006 11:13:32 +0200 |
parents | 9bd8a1a50464 |
children | 21071ae1fe68 |
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 DEFMODE dotile /* dofloat */
7 #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
8 #define BGCOLOR "#0a2c2d"
9 #define FGCOLOR "#ddeeee"
10 #define BORDERCOLOR "#176164"
11 #define MODKEY Mod1Mask
12 #define NUMLOCKMASK Mod2Mask
13 #define MASTERW 52 /* percent */
15 enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast };
16 #define TAGS \
17 char *tags[TLast] = { \
18 [Tfnord] = "fnord", \
19 [Tdev] = "dev", \
20 [Tnet] = "net", \
21 [Twork] = "work", \
22 [Tmisc] = "misc", \
23 };
24 #define DEFTAG Tdev
26 #define KEYS \
27 const char *browse[] = { "firefox", NULL }; \
28 const char *gimp[] = { "gimp", NULL }; \
29 const char *term[] = { \
30 "urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \
31 "-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \
32 }; \
33 const char *xlock[] = { "xlock", NULL }; \
34 static Key key[] = { \
35 /* modifier key function arguments */ \
36 { MODKEY, XK_0, view, { .i = Tfnord } }, \
37 { MODKEY, XK_1, view, { .i = Tdev } }, \
38 { MODKEY, XK_2, view, { .i = Tnet } }, \
39 { MODKEY, XK_3, view, { .i = Twork } }, \
40 { MODKEY, XK_4, view, { .i = Tmisc} }, \
41 { MODKEY, XK_h, viewprev, { 0 } }, \
42 { MODKEY, XK_j, focusnext, { 0 } }, \
43 { MODKEY, XK_k, focusprev, { 0 } }, \
44 { MODKEY, XK_l, viewnext, { 0 } }, \
45 { MODKEY, XK_m, togglemax, { 0 } }, \
46 { MODKEY, XK_space, togglemode, { 0 } }, \
47 { MODKEY, XK_Return, zoom, { 0 } }, \
48 { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \
49 { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \
50 { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \
51 { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \
52 { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \
53 { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \
54 { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \
55 { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \
56 { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \
57 { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \
58 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
59 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
60 { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \
61 { MODKEY|ShiftMask, XK_g, spawn, { .argv = gimp } }, \
62 { MODKEY|ShiftMask, XK_l, spawn, { .argv = xlock } }, \
63 { MODKEY|ShiftMask, XK_w, spawn, { .argv = browse } }, \
64 };
66 #define RULES \
67 static Rule rule[] = { \
68 /* class:instance tags isfloat */ \
69 { "Firefox.*", { [Tnet] = "net" }, False }, \
70 { "Gimp.*", { 0 }, True}, \
71 };