aewl
diff config.h @ 146:f328ce9c558c
centralized/externalized configuration to config.h
author | arg@10ksloc.org |
---|---|
date | Tue, 01 Aug 2006 13:59:13 +0200 |
parents | |
children | a94577c9de73 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config.h Tue Aug 01 13:59:13 2006 +0200 1.3 @@ -0,0 +1,67 @@ 1.4 +/* 1.5 + * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> 1.6 + * See LICENSE file for license details. 1.7 + */ 1.8 + 1.9 +#define FONT "fixed" 1.10 +#define BGCOLOR "#666699" 1.11 +#define FGCOLOR "#eeeeee" 1.12 +#define BORDERCOLOR "#9999CC" 1.13 +#define MODKEY Mod1Mask 1.14 +#define NUMLOCKMASK Mod2Mask 1.15 +#define MASTERW 52 /* percent */ 1.16 +#define WM_PROTOCOL_DELWIN 1 1.17 + 1.18 +enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast }; 1.19 +#define TAGS \ 1.20 +char *tags[TLast] = { \ 1.21 + [Tfnord] = "fnord", \ 1.22 + [Tdev] = "dev", \ 1.23 + [Tnet] = "net", \ 1.24 + [Twork] = "work", \ 1.25 + [Tmisc] = "misc", \ 1.26 +}; 1.27 +#define DEFTAG Tdev 1.28 + 1.29 + 1.30 +#define CMDS \ 1.31 + const char *term[] = { "xterm", NULL }; 1.32 + 1.33 +#define KEYS \ 1.34 +static Key key[] = { \ 1.35 + /* modifier key function arguments */ \ 1.36 + { MODKEY, XK_0, view, { .i = Tfnord } }, \ 1.37 + { MODKEY, XK_1, view, { .i = Tdev } }, \ 1.38 + { MODKEY, XK_2, view, { .i = Tnet } }, \ 1.39 + { MODKEY, XK_3, view, { .i = Twork } }, \ 1.40 + { MODKEY, XK_4, view, { .i = Tmisc} }, \ 1.41 + { MODKEY, XK_h, viewprev, { 0 } }, \ 1.42 + { MODKEY, XK_j, focusnext, { 0 } }, \ 1.43 + { MODKEY, XK_k, focusprev, { 0 } }, \ 1.44 + { MODKEY, XK_l, viewnext, { 0 } }, \ 1.45 + { MODKEY, XK_m, togglemax, { 0 } }, \ 1.46 + { MODKEY, XK_space, togglemode, { 0 } }, \ 1.47 + { MODKEY, XK_Return, zoom, { 0 } }, \ 1.48 + { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \ 1.49 + { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \ 1.50 + { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \ 1.51 + { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \ 1.52 + { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \ 1.53 + { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \ 1.54 + { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \ 1.55 + { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \ 1.56 + { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \ 1.57 + { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \ 1.58 + { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ 1.59 + { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ 1.60 + { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \ 1.61 +}; 1.62 + 1.63 +#define RULES \ 1.64 +static Rule rule[] = { \ 1.65 + /* class:instance tags isfloat */ \ 1.66 + { "Firefox.*", { [Tnet] = "net" }, False }, \ 1.67 + { "Gimp.*", { 0 }, True}, \ 1.68 +}; 1.69 + 1.70 +#define ARRANGE dotile