small fix in config.arg.h
authorAnselm R. Garbe <arg@10kloc.org>
Wed, 30 Aug 2006 13:00:30 +0200
changeset 392 278277287de6
parent 391 da4ec658ce9b
child 393 6786cd59468f
small fix in config.arg.h
config.arg.h
--- a/config.arg.h	Wed Aug 30 12:39:35 2006 +0200
+++ b/config.arg.h	Wed Aug 30 13:00:30 2006 +0200
@@ -27,9 +27,9 @@
 	{ MODKEY|ShiftMask,		XK_Return,	spawn, \
 		{ .cmd = "exec uxterm -bg '#111111' -fg '#eeeeee' -cr '#eeeeee' +sb -fn '"FONT"'" } }, \
 	{ MODKEY,			XK_p,		spawn, \
-		{ .cmd = "exec \"$(IFS=:; for dir in $PATH; do " \
-			"for file in \"$dir\"/*; do [ -x \"$file\" ] && echo \"${file##*/}\"; done; " \
-			"done | sort -u | dmenu)\"" } }, \
+		{ .cmd = "exe=\"$(IFS=:; for dir in $PATH; do " \
+			 "for file in \"$dir\"/*; do [ -x \"$file\" ] && echo \"${file##*/}\"; done; " \
+			 "done | sort -u | dmenu)\" && exec \"$exe\"" } }, \
 	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
 	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
 	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \