aewl

view config.h @ 156:9bd8a1a50464

renamed ARRANGE into DEFMODE
author arg@10ksloc.org
date Tue, 01 Aug 2006 16:39:20 +0200
parents 4a64fd270e47
children c8db0a825775
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 };
7 #define DEFMODE dotile /* dofloat */
8 #define DEFTAG Tdev
9 #define FONT "fixed"
10 #define BGCOLOR "#666699"
11 #define FGCOLOR "#eeeeee"
12 #define BORDERCOLOR "#9999CC"
13 #define MODKEY Mod1Mask
14 #define NUMLOCKMASK Mod2Mask
15 #define MASTERW 52 /* percent */
17 #define TAGS \
18 char *tags[TLast] = { \
19 [Tfnord] = "fnord", \
20 [Tdev] = "dev", \
21 [Tnet] = "net", \
22 [Twork] = "work", \
23 [Tmisc] = "misc", \
24 };
26 #define KEYS \
27 const char *term[] = { "xterm", NULL }; \
28 static Key key[] = { \
29 /* modifier key function arguments */ \
30 { MODKEY, XK_0, view, { .i = Tfnord } }, \
31 { MODKEY, XK_1, view, { .i = Tdev } }, \
32 { MODKEY, XK_2, view, { .i = Tnet } }, \
33 { MODKEY, XK_3, view, { .i = Twork } }, \
34 { MODKEY, XK_4, view, { .i = Tmisc} }, \
35 { MODKEY, XK_h, viewprev, { 0 } }, \
36 { MODKEY, XK_j, focusnext, { 0 } }, \
37 { MODKEY, XK_k, focusprev, { 0 } }, \
38 { MODKEY, XK_l, viewnext, { 0 } }, \
39 { MODKEY, XK_m, togglemax, { 0 } }, \
40 { MODKEY, XK_space, togglemode, { 0 } }, \
41 { MODKEY, XK_Return, zoom, { 0 } }, \
42 { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \
43 { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \
44 { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \
45 { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \
46 { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \
47 { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \
48 { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \
49 { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \
50 { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \
51 { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \
52 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
53 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
54 { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \
55 };
57 #define RULES \
58 static Rule rule[] = { \
59 /* class:instance tags isfloat */ \
60 { "Firefox.*", { [Tnet] = "net" }, False }, \
61 { "Gimp.*", { 0 }, True}, \
62 };