view config.h @ 771:59a6f0ba5478

beautified status bar
author meillo@marmaro.de
date Sat, 06 Dec 2008 10:56:43 +0100
parents 49aa8ccceefa
children 6f7f86762e0e
line wrap: on
line source

/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
 * (C)opyright MMVIII markus schnalke <meillo at marmaro dot de>
 * See LICENSE file for license details.
 */

#define NAMETAGGED "Das Alles"
#define NAMEUNTAGGED "Das Nichts"

#define BORDERPX		1
#define DEFMODE			domax		/* dotile */

#define FONT			"-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*"
#define NORMBGCOLOR		"#333333"
#define NORMFGCOLOR		"#bbbbbb"
#define SELBGCOLOR		"#eec900"
#define SELFGCOLOR		"#000000"

#define MODKEY			Mod1Mask
#define NMASTER			1		/* clients in master area */
#define SNAP			5		/* pixel */

#define KEYS \
static Key key[] = { \
	/* modifier			key		function	argument */ \
	{ MODKEY|ShiftMask,		XK_Return,	spawn,		"exec urxvt" }, \
	{ MODKEY,			XK_F1,		toggleview,		"" }, \
	{ MODKEY,			XK_F2,		toggleview,		"" }, \
	{ MODKEY,			XK_Tab,		focusnext,	"" }, \
	{ MODKEY,			XK_asciicircum,		spawn, "dmenu_run -fn '"FONT"' "\
	         "-nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'"  }, \
	{ MODKEY,			XK_1, 	zoom,		"" }, \
	{ MODKEY, 		XK_2,		killclient,	"" }, \
	{ MODKEY|ShiftMask,		XK_q,		quit,		"" }, \
	{ MODKEY|ShiftMask,			XK_F4,		spawn,		"sudo /sbin/shutdown -h -t 3 now"  }, \
	{ MODKEY,			XK_space,	togglemode,	"" }, \
	{ MODKEY|ShiftMask,		XK_space,	togglefloat,	"" }, \
	{ MODKEY,			XK_plus,		incnmaster,	"" }, \
	{ MODKEY,			XK_minus,		decnmaster,	"" }, \
	{ MODKEY,		XK_F3,		toggletag,		"" }, \
};

/* Query class:instance:title for regex matching info with following command:
 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
#define RULES \
static Rule rule[] = { \
	/* class, instance, title, tag (1=tag/0=untag/-1=curr), isfloat */ \
	{ "URxvt", NULL, NULL,     0, False }, \
	{ "MPlayer", NULL, NULL,  -1, True }, \
	{  NULL, "qiv", NULL,     -1, False }, \
	{ "Gimp", NULL, NULL,      1, True }, \
	{ "", "", "",              1, False }, \
};