aewl

diff config.arg.h @ 353:8a06efe5b563

new color stuff/new rendering stuff
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 25 Aug 2006 12:59:45 +0200
parents 5a8bdc3b37cb
children bb780add36c6
line diff
     1.1 --- a/config.arg.h	Fri Aug 25 07:54:49 2006 +0200
     1.2 +++ b/config.arg.h	Fri Aug 25 12:59:45 2006 +0200
     1.3 @@ -4,50 +4,59 @@
     1.4   */
     1.5  
     1.6  #define TAGS \
     1.7 -const char *tags[] = { "work", "net", "fnord", NULL };
     1.8 +const char *tags[] = { "1", "2", "3", "4", "5", NULL };
     1.9  
    1.10  #define DEFMODE			dotile /* dofloat */
    1.11 -#define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
    1.12 -#define BGCOLOR			"#666699"
    1.13 -#define FGCOLOR			"#eeeeee"
    1.14 -#define BORDERCOLOR		"#9999CC"
    1.15 +
    1.16 +#define FONT			"fixed"
    1.17 +#define SELBGCOLOR		"#666699"
    1.18 +#define SELFGCOLOR		"#eeeeee"
    1.19 +#define NORMBGCOLOR		"#333366"
    1.20 +#define NORMFGCOLOR		"#cccccc"
    1.21 +#define STATUSBGCOLOR		"#dddddd"
    1.22 +#define STATUSFGCOLOR		"#222222"
    1.23 +
    1.24  #define MODKEY			Mod1Mask
    1.25  #define MASTERW			60 /* percent */
    1.26  
    1.27  #define KEYS \
    1.28  static Key key[] = { \
    1.29  	/* modifier			key		function	arguments */ \
    1.30 -	{ MODKEY|ShiftMask,		XK_Return,	spawn, \
    1.31 -		{ .cmd = "exec uxterm -bg '#e0e0e0' -fg '#000000' -cr '#000000' +sb -fn '"FONT"'" } }, \
    1.32 -	{ MODKEY,			XK_p,		spawn, \
    1.33 -		{ .cmd = "exec `ls -lL /usr/bin /usr/X11R6/bin /usr/local/bin 2>/dev/null | " \
    1.34 -			"awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u | dmenu`" } }, \
    1.35 -	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
    1.36 -	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
    1.37 +	{ MODKEY|ShiftMask,		XK_Return,	spawn,		{ .cmd = "exec xterm" } }, \
    1.38 +	{ MODKEY,			XK_Tab,		focusnext,	{ 0 } }, \
    1.39 +	{ MODKEY|ShiftMask,		XK_Tab,		focusprev,	{ 0 } }, \
    1.40  	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
    1.41  	{ MODKEY,			XK_m,		togglemax,	{ 0 } }, \
    1.42  	{ MODKEY|ShiftMask,		XK_1,		tag,		{ .i = 0 } }, \
    1.43  	{ MODKEY|ShiftMask,		XK_2,		tag,		{ .i = 1 } }, \
    1.44  	{ MODKEY|ShiftMask,		XK_3,		tag,		{ .i = 2 } }, \
    1.45 +	{ MODKEY|ShiftMask,		XK_4,		tag,		{ .i = 3 } }, \
    1.46 +	{ MODKEY|ShiftMask,		XK_5,		tag,		{ .i = 4 } }, \
    1.47  	{ MODKEY|ControlMask|ShiftMask,	XK_1,		toggletag,	{ .i = 0 } }, \
    1.48  	{ MODKEY|ControlMask|ShiftMask,	XK_2,		toggletag,	{ .i = 1 } }, \
    1.49  	{ MODKEY|ControlMask|ShiftMask,	XK_3,		toggletag,	{ .i = 2 } }, \
    1.50 +	{ MODKEY|ControlMask|ShiftMask,	XK_4,		toggletag,	{ .i = 3 } }, \
    1.51 +	{ MODKEY|ControlMask|ShiftMask,	XK_5,		toggletag,	{ .i = 4 } }, \
    1.52  	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    1.53  	{ MODKEY,			XK_space,	togglemode,	{ 0 } }, \
    1.54  	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
    1.55  	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
    1.56  	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
    1.57 +	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
    1.58 +	{ MODKEY,			XK_5,		view,		{ .i = 4 } }, \
    1.59  	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
    1.60  	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
    1.61  	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
    1.62 +	{ MODKEY|ControlMask,		XK_4,		toggleview,	{ .i = 3 } }, \
    1.63 +	{ MODKEY|ControlMask,		XK_5,		toggleview,	{ .i = 4 } }, \
    1.64  	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    1.65  };
    1.66  
    1.67 +/* Query class:instance:title for regex matching info with following command:
    1.68 + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/{ printf("%s\n",$2) }' */
    1.69  #define RULES \
    1.70  static Rule rule[] = { \
    1.71  	/* class:instance:title regex	tags regex	isfloat */ \
    1.72 -	{ "Firefox.*",			"net",		False }, \
    1.73 +	{ "Firefox.*",			"2",		False }, \
    1.74  	{ "Gimp.*",			NULL,		True}, \
    1.75 -	{ "MPlayer.*",			NULL,		True}, \
    1.76 -	{ "Acroread.*",			NULL,		True}, \
    1.77  };