dwm-meillo

view config.arg.h @ 152:4a64fd270e47

removed 5LOC
author arg@10ksloc.org
date Tue, 01 Aug 2006 16:20:03 +0200
parents a26b32ff8911
children 9bd8a1a50464
line source
1 /*
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
4 */
6 enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast };
8 #define ARRANGE dotile /* dofloat */
9 #define DEFTAG Tdev
10 #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
11 #define BGCOLOR "#0a2c2d"
12 #define FGCOLOR "#ddeeee"
13 #define BORDERCOLOR "#176164"
14 #define MODKEY Mod1Mask
15 #define NUMLOCKMASK Mod2Mask
16 #define MASTERW 52 /* percent */
18 #define TAGS \
19 char *tags[TLast] = { \
20 [Tfnord] = "fnord", \
21 [Tdev] = "dev", \
22 [Tnet] = "net", \
23 [Twork] = "work", \
24 [Tmisc] = "misc", \
25 };
27 #define KEYS \
28 const char *browse[] = { "firefox", NULL }; \
29 const char *gimp[] = { "gimp", NULL }; \
30 const char *term[] = { \
31 "urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \
32 "-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \
33 }; \
34 const char *xlock[] = { "xlock", NULL }; \
35 static Key key[] = { \
36 /* modifier key function arguments */ \
37 { MODKEY, XK_0, view, { .i = Tfnord } }, \
38 { MODKEY, XK_1, view, { .i = Tdev } }, \
39 { MODKEY, XK_2, view, { .i = Tnet } }, \
40 { MODKEY, XK_3, view, { .i = Twork } }, \
41 { MODKEY, XK_4, view, { .i = Tmisc} }, \
42 { MODKEY, XK_h, viewprev, { 0 } }, \
43 { MODKEY, XK_j, focusnext, { 0 } }, \
44 { MODKEY, XK_k, focusprev, { 0 } }, \
45 { MODKEY, XK_l, viewnext, { 0 } }, \
46 { MODKEY, XK_m, togglemax, { 0 } }, \
47 { MODKEY, XK_space, togglemode, { 0 } }, \
48 { MODKEY, XK_Return, zoom, { 0 } }, \
49 { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \
50 { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \
51 { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \
52 { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \
53 { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \
54 { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \
55 { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \
56 { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \
57 { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \
58 { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \
59 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
60 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
61 { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \
62 { MODKEY|ShiftMask, XK_g, spawn, { .argv = gimp } }, \
63 { MODKEY|ShiftMask, XK_l, spawn, { .argv = xlock } }, \
64 { MODKEY|ShiftMask, XK_w, spawn, { .argv = browse } }, \
65 };
67 #define RULES \
68 static Rule rule[] = { \
69 /* class:instance tags isfloat */ \
70 { "Firefox.*", { [Tnet] = "net" }, False }, \
71 { "Gimp.*", { 0 }, True}, \
72 };