aewl

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