aewl
diff config.h @ 746:a28456200108
added my config.h and removed config.arg.h config.default.h
author | meillo@marmaro.de |
---|---|
date | Sun, 11 Feb 2007 12:01:06 +0100 |
parents | |
children | 61821891835c |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config.h Sun Feb 11 12:01:06 2007 +0100 1.3 @@ -0,0 +1,60 @@ 1.4 +/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com> 1.5 + * See LICENSE file for license details. 1.6 + */ 1.7 + 1.8 +#define TAGS \ 1.9 +const char *tags[] = { "Das Alles", "Das Nichts", NULL }; 1.10 + 1.11 +#define BORDERPX 1 1.12 +#define DEFMODE dotile /* dofloat */ 1.13 +#define FLOATSYMBOL "F" 1.14 +#define TILESYMBOL "T" 1.15 + 1.16 +#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*" 1.17 +#define NORMBGCOLOR "#333333" 1.18 +#define NORMFGCOLOR "#bbbbbb" 1.19 +#define SELBGCOLOR "#eec900" 1.20 +#define SELFGCOLOR "#000000" 1.21 +#define NORMBORDERCOLOR NORMBGCOLOR 1.22 +#define SELBORDERCOLOR SELBGCOLOR 1.23 + 1.24 +#define MASTER 500 /* per thousand */ 1.25 +#define MODKEY Mod1Mask 1.26 +#define NMASTER 1 /* clients in master area */ 1.27 +#define SNAP 5 /* pixel */ 1.28 +#define TOPBAR True /* False */ 1.29 + 1.30 +#define KEYS \ 1.31 +static Key key[] = { \ 1.32 + /* modifier key function argument */ \ 1.33 + { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec urxvt" } }, \ 1.34 + { MODKEY, XK_F1, viewnext, { .i = 0 } }, \ 1.35 + { MODKEY, XK_Tab, focusnext, { 0 } }, \ 1.36 + { MODKEY, XK_asciicircum, spawn, \ 1.37 + { .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \ 1.38 + " | dmenu -font '"FONT"' -normbg '"NORMBGCOLOR"' -normfg '"NORMFGCOLOR"' " \ 1.39 + "-selbg '"SELBGCOLOR"' -selfg '"SELFGCOLOR"')\" && exec $exe" } }, \ 1.40 + { MODKEY, XK_1, zoom, { 0 } }, \ 1.41 + { MODKEY, XK_2, killclient, { 0 } }, \ 1.42 + { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ 1.43 + { MODKEY|ShiftMask, XK_F4, spawn, { .cmd = "exec sudo halt" } }, \ 1.44 + { MODKEY, XK_space, togglefloat, { 0 } }, \ 1.45 + { MODKEY|ShiftMask, XK_space, togglemode, { 0 } }, \ 1.46 + { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ 1.47 + { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ 1.48 + { MODKEY, XK_i, incnmaster, { .i = 1 } }, \ 1.49 + { MODKEY, XK_d, incnmaster, { .i = -1 } }, \ 1.50 + { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 1.51 + { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 1.52 +}; 1.53 + 1.54 +/* Query class:instance:title for regex matching info with following command: 1.55 + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */ 1.56 +#define RULES \ 1.57 +static Rule rule[] = { \ 1.58 + /* class:instance:title regex tags regex isfloat */ \ 1.59 + { "URxvt.*", "Das Nichts", False }, \ 1.60 + { "MPlayer.*", NULL, True }, \ 1.61 + { "Gimp.*", "Das Alles", True }, \ 1.62 + { ".*", "Das Alles", False }, \ 1.63 +};