dwm-meillo

diff config.arg.h @ 189:523df4a3c1c4

using execl now, argv changed, using cmd and const char defs directly in the KEYS struct
author arg@10ksloc.org
date Fri, 04 Aug 2006 12:00:55 +0200
parents 7636f51e737f
children 713dcc7d2c42
line diff
     1.1 --- a/config.arg.h	Fri Aug 04 10:36:22 2006 +0200
     1.2 +++ b/config.arg.h	Fri Aug 04 12:00:55 2006 +0200
     1.3 @@ -17,13 +17,6 @@
     1.4  #define MASTERW			60 /* percent */
     1.5  
     1.6  #define KEYS \
     1.7 -	const char *browse[] = { "firefox", NULL }; \
     1.8 -	const char *gimp[] = { "gimp", NULL }; \
     1.9 -	const char *term[] = { \
    1.10 -		"urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \
    1.11 -		"-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \
    1.12 -	}; \
    1.13 -	const char *xlock[] = { "xlock", NULL }; \
    1.14  static Key key[] = { \
    1.15  	/* modifier		key		function	arguments */ \
    1.16  	{ MODKEY,		XK_0,		view,		{ .i = 0 } }, \
    1.17 @@ -50,10 +43,12 @@
    1.18  	{ MODKEY|ShiftMask,	XK_4,		replacetag,	{ .i = 5 } }, \
    1.19  	{ MODKEY|ShiftMask,	XK_c,		killclient,	{ 0 } }, \
    1.20  	{ MODKEY|ShiftMask,	XK_q,		quit,		{ 0 } }, \
    1.21 -	{ MODKEY|ShiftMask,	XK_Return,	spawn,		{ .argv = term } }, \
    1.22 -	{ MODKEY|ShiftMask,	XK_g,		spawn,		{ .argv = gimp } }, \
    1.23 -	{ MODKEY|ShiftMask,	XK_l,		spawn,		{ .argv = xlock } }, \
    1.24 -	{ MODKEY|ShiftMask,	XK_w,		spawn,		{ .argv = browse } }, \
    1.25 +	{ MODKEY|ShiftMask,	XK_x,		spawn, \
    1.26 +		{ .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null |" \
    1.27 +		" awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | dmenu`" } }, \
    1.28 +	{ MODKEY|ShiftMask,	XK_Return,	spawn, \
    1.29 +		{ .cmd = "exec urxvt -tr +sb -bg black -fg white -cr white " \
    1.30 +			"-fn '-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*'" } }, \
    1.31  };
    1.32  
    1.33  #define RULES \