aewl

changeset 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 08b89915c109
children f0e6c8860014
files config.arg.h config.default.h config.h
diffstat 3 files changed, 60 insertions(+), 184 deletions(-) [+]
line diff
     1.1 --- a/config.arg.h	Sun Feb 11 11:59:23 2007 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,94 +0,0 @@
     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[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
    1.10 -
    1.11 -#define BORDERPX		1
    1.12 -#define DEFMODE			dotile		/* dofloat */
    1.13 -#define FLOATSYMBOL		"><>"
    1.14 -#define TILESYMBOL		"[]="
    1.15 -
    1.16 -#define FONT			"-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*"
    1.17 -#define NORMBORDERCOLOR		"#333"
    1.18 -#define NORMBGCOLOR		"#222"
    1.19 -#define NORMFGCOLOR		"#ccc"
    1.20 -#define SELBORDERCOLOR		"#69c"
    1.21 -#define SELBGCOLOR		"#555"
    1.22 -#define SELFGCOLOR		"#fff"
    1.23 -
    1.24 -#define MASTER			600		/* per thousand */
    1.25 -#define MODKEY			Mod1Mask
    1.26 -#define NMASTER			1		/* clients in master area */
    1.27 -#define SNAP			40		/* 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, \
    1.34 -		{ .cmd = "exec uxterm -bg '#222' -fg '#eee' -cr '#eee' +sb -fn '"FONT"'" } }, \
    1.35 -	{ MODKEY,			XK_p,		spawn, \
    1.36 -		{ .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \
    1.37 -			" | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' " \
    1.38 -			"-sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"')\" && exec $exe" } }, \
    1.39 -	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
    1.40 -	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
    1.41 -	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
    1.42 -	{ MODKEY,			XK_g,		resizemaster,	{ .i = 15 } }, \
    1.43 -	{ MODKEY,			XK_s,		resizemaster,	{ .i = -15 } }, \
    1.44 -	{ MODKEY,			XK_i,		incnmaster,	{ .i = 1 } }, \
    1.45 -	{ MODKEY,			XK_d,		incnmaster,	{ .i = -1 } }, \
    1.46 -	{ MODKEY|ShiftMask,		XK_0,		tag,		{ .i = -1 } }, \
    1.47 -	{ MODKEY|ShiftMask,		XK_1,		tag,		{ .i = 0 } }, \
    1.48 -	{ MODKEY|ShiftMask,		XK_2,		tag,		{ .i = 1 } }, \
    1.49 -	{ MODKEY|ShiftMask,		XK_3,		tag,		{ .i = 2 } }, \
    1.50 -	{ MODKEY|ShiftMask,		XK_4,		tag,		{ .i = 3 } }, \
    1.51 -	{ MODKEY|ShiftMask,		XK_5,		tag,		{ .i = 4 } }, \
    1.52 -	{ MODKEY|ShiftMask,		XK_6,		tag,		{ .i = 5 } }, \
    1.53 -	{ MODKEY|ShiftMask,		XK_7,		tag,		{ .i = 6 } }, \
    1.54 -	{ MODKEY|ShiftMask,		XK_8,		tag,		{ .i = 7 } }, \
    1.55 -	{ MODKEY|ShiftMask,		XK_9,		tag,		{ .i = 8 } }, \
    1.56 -	{ MODKEY|ControlMask|ShiftMask,	XK_1,		toggletag,	{ .i = 0 } }, \
    1.57 -	{ MODKEY|ControlMask|ShiftMask,	XK_2,		toggletag,	{ .i = 1 } }, \
    1.58 -	{ MODKEY|ControlMask|ShiftMask,	XK_3,		toggletag,	{ .i = 2 } }, \
    1.59 -	{ MODKEY|ControlMask|ShiftMask,	XK_4,		toggletag,	{ .i = 3 } }, \
    1.60 -	{ MODKEY|ControlMask|ShiftMask,	XK_5,		toggletag,	{ .i = 4 } }, \
    1.61 -	{ MODKEY|ControlMask|ShiftMask,	XK_6,		toggletag,	{ .i = 5 } }, \
    1.62 -	{ MODKEY|ControlMask|ShiftMask,	XK_7,		toggletag,	{ .i = 6 } }, \
    1.63 -	{ MODKEY|ControlMask|ShiftMask,	XK_8,		toggletag,	{ .i = 7 } }, \
    1.64 -	{ MODKEY|ControlMask|ShiftMask,	XK_9,		toggletag,	{ .i = 8 } }, \
    1.65 -	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    1.66 -	{ MODKEY,			XK_space,	togglemode,	{ 0 } }, \
    1.67 -	{ MODKEY|ShiftMask,		XK_space,	togglefloat,	{ 0 } }, \
    1.68 -	{ MODKEY,			XK_0,		view,		{ .i = -1 } }, \
    1.69 -	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
    1.70 -	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
    1.71 -	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
    1.72 -	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
    1.73 -	{ MODKEY,			XK_5,		view,		{ .i = 4 } }, \
    1.74 -	{ MODKEY,			XK_6,		view,		{ .i = 5 } }, \
    1.75 -	{ MODKEY,			XK_7,		view,		{ .i = 6 } }, \
    1.76 -	{ MODKEY,			XK_8,		view,		{ .i = 7 } }, \
    1.77 -	{ MODKEY,			XK_9,		view,		{ .i = 8 } }, \
    1.78 -	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
    1.79 -	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
    1.80 -	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
    1.81 -	{ MODKEY|ControlMask,		XK_4,		toggleview,	{ .i = 3 } }, \
    1.82 -	{ MODKEY|ControlMask,		XK_5,		toggleview,	{ .i = 4 } }, \
    1.83 -	{ MODKEY|ControlMask,		XK_6,		toggleview,	{ .i = 5 } }, \
    1.84 -	{ MODKEY|ControlMask,		XK_7,		toggleview,	{ .i = 6 } }, \
    1.85 -	{ MODKEY|ControlMask,		XK_8,		toggleview,	{ .i = 7 } }, \
    1.86 -	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
    1.87 -	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    1.88 -};
    1.89 -
    1.90 -#define RULES \
    1.91 -static Rule rule[] = { \
    1.92 -	/* class:instance:title regex	tags regex	isfloat */ \
    1.93 -	{ "Firefox.*",			"3",		False }, \
    1.94 -	{ "Gimp.*",			NULL,		True }, \
    1.95 -	{ "MPlayer.*",			NULL,		True }, \
    1.96 -	{ "Acroread.*",			NULL,		True }, \
    1.97 -};
     2.1 --- a/config.default.h	Sun Feb 11 11:59:23 2007 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,90 +0,0 @@
     2.4 -/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
     2.5 - * See LICENSE file for license details.
     2.6 - */
     2.7 -
     2.8 -#define TAGS \
     2.9 -const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
    2.10 -
    2.11 -#define BORDERPX		1
    2.12 -#define DEFMODE			dotile		/* dofloat */
    2.13 -#define FLOATSYMBOL		"><>"
    2.14 -#define TILESYMBOL		"[]="
    2.15 -
    2.16 -#define FONT			"-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
    2.17 -#define NORMBORDERCOLOR		"#dddddd"
    2.18 -#define NORMBGCOLOR		"#eeeeee"
    2.19 -#define NORMFGCOLOR		"#222222"
    2.20 -#define SELBORDERCOLOR		"#ff0000"
    2.21 -#define SELBGCOLOR		"#006699"
    2.22 -#define SELFGCOLOR		"#ffffff"
    2.23 -
    2.24 -#define MASTER			600		/* per thousand */
    2.25 -#define MODKEY			Mod1Mask
    2.26 -#define NMASTER			1		/* clients in master area */
    2.27 -#define SNAP			20		/* pixel */
    2.28 -#define TOPBAR			True		/* False */
    2.29 -
    2.30 -#define KEYS \
    2.31 -static Key key[] = { \
    2.32 -	/* modifier			key		function	argument */ \
    2.33 -	{ MODKEY|ShiftMask,		XK_Return,	spawn,		{ .cmd = "exec xterm" } }, \
    2.34 -	{ MODKEY,			XK_Tab,		focusnext,	{ 0 } }, \
    2.35 -	{ MODKEY|ShiftMask,		XK_Tab,		focusprev,	{ 0 } }, \
    2.36 -	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
    2.37 -	{ MODKEY,			XK_g,		resizemaster,	{ .i = 15 } }, \
    2.38 -	{ MODKEY,			XK_s,		resizemaster,	{ .i = -15 } }, \
    2.39 -	{ MODKEY,			XK_i,		incnmaster,	{ .i = 1 } }, \
    2.40 -	{ MODKEY,			XK_d,		incnmaster,	{ .i = -1 } }, \
    2.41 -	{ MODKEY|ShiftMask,		XK_0,		tag,		{ .i = -1 } }, \
    2.42 -	{ MODKEY|ShiftMask,		XK_1,		tag,		{ .i = 0 } }, \
    2.43 -	{ MODKEY|ShiftMask,		XK_2,		tag,		{ .i = 1 } }, \
    2.44 -	{ MODKEY|ShiftMask,		XK_3,		tag,		{ .i = 2 } }, \
    2.45 -	{ MODKEY|ShiftMask,		XK_4,		tag,		{ .i = 3 } }, \
    2.46 -	{ MODKEY|ShiftMask,		XK_5,		tag,		{ .i = 4 } }, \
    2.47 -	{ MODKEY|ShiftMask,		XK_6,		tag,		{ .i = 5 } }, \
    2.48 -	{ MODKEY|ShiftMask,		XK_7,		tag,		{ .i = 6 } }, \
    2.49 -	{ MODKEY|ShiftMask,		XK_8,		tag,		{ .i = 7 } }, \
    2.50 -	{ MODKEY|ShiftMask,		XK_9,		tag,		{ .i = 8 } }, \
    2.51 -	{ MODKEY|ControlMask|ShiftMask,	XK_1,		toggletag,	{ .i = 0 } }, \
    2.52 -	{ MODKEY|ControlMask|ShiftMask,	XK_2,		toggletag,	{ .i = 1 } }, \
    2.53 -	{ MODKEY|ControlMask|ShiftMask,	XK_3,		toggletag,	{ .i = 2 } }, \
    2.54 -	{ MODKEY|ControlMask|ShiftMask,	XK_4,		toggletag,	{ .i = 3 } }, \
    2.55 -	{ MODKEY|ControlMask|ShiftMask,	XK_5,		toggletag,	{ .i = 4 } }, \
    2.56 -	{ MODKEY|ControlMask|ShiftMask,	XK_6,		toggletag,	{ .i = 5 } }, \
    2.57 -	{ MODKEY|ControlMask|ShiftMask,	XK_7,		toggletag,	{ .i = 6 } }, \
    2.58 -	{ MODKEY|ControlMask|ShiftMask,	XK_8,		toggletag,	{ .i = 7 } }, \
    2.59 -	{ MODKEY|ControlMask|ShiftMask,	XK_9,		toggletag,	{ .i = 8 } }, \
    2.60 -	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    2.61 -	{ MODKEY,			XK_space,	togglemode,	{ 0 } }, \
    2.62 -	{ MODKEY|ShiftMask,		XK_space,	togglefloat,	{ 0 } }, \
    2.63 -	{ MODKEY,			XK_0,		view,		{ .i = -1 } }, \
    2.64 -	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
    2.65 -	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
    2.66 -	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
    2.67 -	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
    2.68 -	{ MODKEY,			XK_5,		view,		{ .i = 4 } }, \
    2.69 -	{ MODKEY,			XK_6,		view,		{ .i = 5 } }, \
    2.70 -	{ MODKEY,			XK_7,		view,		{ .i = 6 } }, \
    2.71 -	{ MODKEY,			XK_8,		view,		{ .i = 7 } }, \
    2.72 -	{ MODKEY,			XK_9,		view,		{ .i = 8 } }, \
    2.73 -	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
    2.74 -	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
    2.75 -	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
    2.76 -	{ MODKEY|ControlMask,		XK_4,		toggleview,	{ .i = 3 } }, \
    2.77 -	{ MODKEY|ControlMask,		XK_5,		toggleview,	{ .i = 4 } }, \
    2.78 -	{ MODKEY|ControlMask,		XK_6,		toggleview,	{ .i = 5 } }, \
    2.79 -	{ MODKEY|ControlMask,		XK_7,		toggleview,	{ .i = 6 } }, \
    2.80 -	{ MODKEY|ControlMask,		XK_8,		toggleview,	{ .i = 7 } }, \
    2.81 -	{ MODKEY|ControlMask,		XK_9,		toggleview,	{ .i = 8 } }, \
    2.82 -	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    2.83 -};
    2.84 -
    2.85 -/* Query class:instance:title for regex matching info with following command:
    2.86 - * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
    2.87 -#define RULES \
    2.88 -static Rule rule[] = { \
    2.89 -	/* class:instance:title regex	tags regex	isfloat */ \
    2.90 -	{ "Gimp.*",			NULL,		True }, \
    2.91 -	{ "MPlayer.*",			NULL,		True }, \
    2.92 -	{ "Acroread.*",			NULL,		True }, \
    2.93 -};
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/config.h	Sun Feb 11 12:01:06 2007 +0100
     3.3 @@ -0,0 +1,60 @@
     3.4 +/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
     3.5 + * See LICENSE file for license details.
     3.6 + */
     3.7 +
     3.8 +#define TAGS \
     3.9 +const char *tags[] = { "Das Alles", "Das Nichts", NULL };
    3.10 +
    3.11 +#define BORDERPX		1
    3.12 +#define DEFMODE			dotile		/* dofloat */
    3.13 +#define FLOATSYMBOL		"F"
    3.14 +#define TILESYMBOL		"T"
    3.15 +
    3.16 +#define FONT			"-*-terminus-medium-*-*-*-12-*-*-*-*-*-*-*"
    3.17 +#define NORMBGCOLOR		"#333333"
    3.18 +#define NORMFGCOLOR		"#bbbbbb"
    3.19 +#define SELBGCOLOR		"#eec900"
    3.20 +#define SELFGCOLOR		"#000000"
    3.21 +#define NORMBORDERCOLOR		NORMBGCOLOR
    3.22 +#define SELBORDERCOLOR		SELBGCOLOR
    3.23 +
    3.24 +#define MASTER			500		/* per thousand */
    3.25 +#define MODKEY			Mod1Mask
    3.26 +#define NMASTER			1		/* clients in master area */
    3.27 +#define SNAP			5		/* pixel */
    3.28 +#define TOPBAR			True		/* False */
    3.29 +
    3.30 +#define KEYS \
    3.31 +static Key key[] = { \
    3.32 +	/* modifier			key		function	argument */ \
    3.33 +	{ MODKEY|ShiftMask,		XK_Return,	spawn,		{ .cmd = "exec urxvt" } }, \
    3.34 +	{ MODKEY,			XK_F1,		viewnext,		{ .i = 0 } }, \
    3.35 +	{ MODKEY,			XK_Tab,		focusnext,	{ 0 } }, \
    3.36 +	{ MODKEY,			XK_asciicircum,		spawn, \
    3.37 +		{ .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \
    3.38 +			" | dmenu -font '"FONT"' -normbg '"NORMBGCOLOR"' -normfg '"NORMFGCOLOR"' " \
    3.39 +			"-selbg '"SELBGCOLOR"' -selfg '"SELFGCOLOR"')\" && exec $exe" } }, \
    3.40 +	{ MODKEY,			XK_1, 	zoom,		{ 0 } }, \
    3.41 +	{ MODKEY, 		XK_2,		killclient,	{ 0 } }, \
    3.42 +	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    3.43 +	{ MODKEY|ShiftMask,			XK_F4,		spawn,		{ .cmd = "exec sudo halt" } }, \
    3.44 +	{ MODKEY,			XK_space,	togglefloat,	{ 0 } }, \
    3.45 +	{ MODKEY|ShiftMask,		XK_space,	togglemode,	{ 0 } }, \
    3.46 +	{ MODKEY,			XK_g,		resizemaster,	{ .i = 15 } }, \
    3.47 +	{ MODKEY,			XK_s,		resizemaster,	{ .i = -15 } }, \
    3.48 +	{ MODKEY,			XK_i,		incnmaster,	{ .i = 1 } }, \
    3.49 +	{ MODKEY,			XK_d,		incnmaster,	{ .i = -1 } }, \
    3.50 +	{ MODKEY|ShiftMask,		XK_1,		tag,		{ .i = 0 } }, \
    3.51 +	{ MODKEY|ShiftMask,		XK_2,		tag,		{ .i = 1 } }, \
    3.52 +};
    3.53 +
    3.54 +/* Query class:instance:title for regex matching info with following command:
    3.55 + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
    3.56 +#define RULES \
    3.57 +static Rule rule[] = { \
    3.58 +	/* class:instance:title regex	tags regex	isfloat */ \
    3.59 +	{ "URxvt.*",	  	  	"Das Nichts",	    	False }, \
    3.60 +	{ "MPlayer.*",		  	NULL,	    	True }, \
    3.61 +	{ "Gimp.*",	      		"Das Alles",		True }, \
    3.62 +	{ ".*",		          	"Das Alles",	    	False }, \
    3.63 +};