aewl

annotate config.h @ 767:706991d15451

removed rexexp for old strstr matching; simplifications
author meillo@marmaro.de
date Fri, 05 Dec 2008 20:50:31 +0100
parents 3f7c68a720b5
children 49aa8ccceefa
rev   line source
meillo@765 1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
meillo@765 2 * (C)opyright MMVIII markus schnalke <meillo at marmaro dot de>
meillo@765 3 * See LICENSE file for license details.
meillo@765 4 */
meillo@765 5
meillo@766 6 #define NAMETAGGED "Das Alles"
meillo@766 7 #define NAMEUNTAGGED "Das Nichts"
meillo@765 8
meillo@765 9 #define BORDERPX 1
meillo@765 10 #define DEFMODE domax /* dotile */
meillo@765 11
meillo@765 12 #define FONT "-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*"
meillo@765 13 #define NORMBGCOLOR "#333333"
meillo@765 14 #define NORMFGCOLOR "#bbbbbb"
meillo@765 15 #define SELBGCOLOR "#eec900"
meillo@765 16 #define SELFGCOLOR "#000000"
meillo@765 17
meillo@765 18 #define MODKEY Mod1Mask
meillo@765 19 #define NMASTER 1 /* clients in master area */
meillo@765 20 #define SNAP 5 /* pixel */
meillo@765 21
meillo@765 22 #define KEYS \
meillo@765 23 static Key key[] = { \
meillo@765 24 /* modifier key function argument */ \
meillo@765 25 { MODKEY|ShiftMask, XK_Return, spawn, "exec urxvt" }, \
meillo@765 26 { MODKEY, XK_F1, toggleview, "" }, \
meillo@765 27 { MODKEY, XK_F2, toggleview, "" }, \
meillo@765 28 { MODKEY, XK_Tab, focusnext, "" }, \
meillo@765 29 { MODKEY, XK_asciicircum, spawn, "dmenu_run -fn '"FONT"' "\
meillo@765 30 "-nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, \
meillo@765 31 { MODKEY, XK_1, zoom, "" }, \
meillo@765 32 { MODKEY, XK_2, killclient, "" }, \
meillo@765 33 { MODKEY|ShiftMask, XK_q, quit, "" }, \
meillo@765 34 { MODKEY|ShiftMask, XK_F4, spawn, "sudo /sbin/shutdown -h -t 3 now" }, \
meillo@765 35 { MODKEY, XK_space, togglemode, "" }, \
meillo@765 36 { MODKEY|ShiftMask, XK_space, togglefloat, "" }, \
meillo@765 37 { MODKEY, XK_plus, incnmaster, "" }, \
meillo@765 38 { MODKEY, XK_minus, decnmaster, "" }, \
meillo@766 39 { MODKEY, XK_F3, toggletag, "" }, \
meillo@765 40 };
meillo@765 41
meillo@765 42 /* Query class:instance:title for regex matching info with following command:
meillo@765 43 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
meillo@765 44 #define RULES \
meillo@765 45 static Rule rule[] = { \
meillo@767 46 /* class, instance, title, tag (1=tag/0=untag/-1=curr), isfloat */ \
meillo@767 47 { "URxvt", NULL, NULL, 0, False }, \
meillo@767 48 { "urxvt", NULL, NULL, 0, False }, \
meillo@767 49 { "MPlayer", NULL, NULL, -1, True }, \
meillo@767 50 { NULL, "qiv", NULL, -1, False }, \
meillo@767 51 { "Gimp", NULL, NULL, 1, True }, \
meillo@767 52 { "", "", "", 1, False }, \
meillo@765 53 };