dwm-meillo
view config.arg.h @ 187:41f8ee33771e
small stylistic fix
author | arg@10ksloc.org |
---|---|
date | Fri, 04 Aug 2006 10:27:16 +0200 |
parents | 621222b67c3b |
children | 523df4a3c1c4 |
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[] = { "fnord", "dev", "net", "work", "misc", NULL };
9 #define DEFMODE dotile /* dofloat */
10 #define DEFTAG 1 /* index */
11 #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
12 #define BGCOLOR "#0a2c2d"
13 #define FGCOLOR "#ddeeee"
14 #define BORDERCOLOR "#176164"
15 #define MODKEY Mod1Mask
16 #define NUMLOCKMASK Mod2Mask
17 #define MASTERW 60 /* percent */
19 #define KEYS \
20 const char *browse[] = { "firefox", NULL }; \
21 const char *gimp[] = { "gimp", NULL }; \
22 const char *term[] = { \
23 "urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \
24 "-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \
25 }; \
26 const char *xlock[] = { "xlock", NULL }; \
27 static Key key[] = { \
28 /* modifier key function arguments */ \
29 { MODKEY, XK_0, view, { .i = 0 } }, \
30 { MODKEY, XK_1, view, { .i = 1 } }, \
31 { MODKEY, XK_2, view, { .i = 2 } }, \
32 { MODKEY, XK_3, view, { .i = 3 } }, \
33 { MODKEY, XK_4, view, { .i = 4 } }, \
34 { MODKEY, XK_h, viewprev, { 0 } }, \
35 { MODKEY, XK_j, focusnext, { 0 } }, \
36 { MODKEY, XK_k, focusprev, { 0 } }, \
37 { MODKEY, XK_l, viewnext, { 0 } }, \
38 { MODKEY, XK_m, togglemax, { 0 } }, \
39 { MODKEY, XK_space, togglemode, { 0 } }, \
40 { MODKEY, XK_Return, zoom, { 0 } }, \
41 { MODKEY|ControlMask, XK_0, appendtag, { .i = 0 } }, \
42 { MODKEY|ControlMask, XK_1, appendtag, { .i = 1 } }, \
43 { MODKEY|ControlMask, XK_2, appendtag, { .i = 2 } }, \
44 { MODKEY|ControlMask, XK_3, appendtag, { .i = 3 } }, \
45 { MODKEY|ControlMask, XK_4, appendtag, { .i = 4 } }, \
46 { MODKEY|ShiftMask, XK_0, replacetag, { .i = 0 } }, \
47 { MODKEY|ShiftMask, XK_1, replacetag, { .i = 1 } }, \
48 { MODKEY|ShiftMask, XK_2, replacetag, { .i = 2 } }, \
49 { MODKEY|ShiftMask, XK_3, replacetag, { .i = 3 } }, \
50 { MODKEY|ShiftMask, XK_4, replacetag, { .i = 5 } }, \
51 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
52 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
53 { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \
54 { MODKEY|ShiftMask, XK_g, spawn, { .argv = gimp } }, \
55 { MODKEY|ShiftMask, XK_l, spawn, { .argv = xlock } }, \
56 { MODKEY|ShiftMask, XK_w, spawn, { .argv = browse } }, \
57 };
59 #define RULES \
60 const unsigned int two[] = { 2 }; \
61 static Rule rule[] = { \
62 /* class:instance tags isfloat */ \
63 { "Firefox.*", two, False }, \
64 { "Gimp.*", NULL, True}, \
65 { "MPlayer.*", NULL, True}, \
66 { "Acroread.*", NULL, True}, \
67 };