dwm-meillo

view config.arg.h @ 147:a94577c9de73

fixed config.h files
author arg@10ksloc.org
date Tue, 01 Aug 2006 14:03:29 +0200
parents f328ce9c558c
children a26b32ff8911
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 ARRANGE dotile
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 */
14 #define WM_PROTOCOL_DELWIN 1
16 enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast };
17 #define TAGS \
18 char *tags[TLast] = { \
19 [Tfnord] = "fnord", \
20 [Tdev] = "dev", \
21 [Tnet] = "net", \
22 [Twork] = "work", \
23 [Tmisc] = "misc", \
24 };
25 #define DEFTAG Tdev
28 #define CMDS \
29 const char *browse[] = { "firefox", NULL }; \
30 const char *gimp[] = { "gimp", NULL }; \
31 const char *term[] = { \
32 "urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \
33 "-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \
34 }; \
35 const char *xlock[] = { "xlock", NULL };
37 #define KEYS \
38 static Key key[] = { \
39 /* modifier key function arguments */ \
40 { MODKEY, XK_0, view, { .i = Tfnord } }, \
41 { MODKEY, XK_1, view, { .i = Tdev } }, \
42 { MODKEY, XK_2, view, { .i = Tnet } }, \
43 { MODKEY, XK_3, view, { .i = Twork } }, \
44 { MODKEY, XK_4, view, { .i = Tmisc} }, \
45 { MODKEY, XK_h, viewprev, { 0 } }, \
46 { MODKEY, XK_j, focusnext, { 0 } }, \
47 { MODKEY, XK_k, focusprev, { 0 } }, \
48 { MODKEY, XK_l, viewnext, { 0 } }, \
49 { MODKEY, XK_m, togglemax, { 0 } }, \
50 { MODKEY, XK_space, togglemode, { 0 } }, \
51 { MODKEY, XK_Return, zoom, { 0 } }, \
52 { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \
53 { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \
54 { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \
55 { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \
56 { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \
57 { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \
58 { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \
59 { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \
60 { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \
61 { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \
62 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
63 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
64 { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \
65 { MODKEY|ShiftMask, XK_g, spawn, { .argv = gimp } }, \
66 { MODKEY|ShiftMask, XK_l, spawn, { .argv = xlock } }, \
67 { MODKEY|ShiftMask, XK_w, spawn, { .argv = browse } }, \
68 };
70 #define RULES \
71 static Rule rule[] = { \
72 /* class:instance tags isfloat */ \
73 { "Firefox.*", { [Tnet] = "net" }, False }, \
74 { "Gimp.*", { 0 }, True}, \
75 };