aewl

changeset 354:bb780add36c6

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