dwm

my fork of dwm
Index Commits Files Refs README LICENSE
commit 9927b9e64253643f409bd1ef22349cf4e9ca7727
parent 1b492dffc8adce5fb061e9df4504f7dd1ebcf478
Author: Anselm R. Garbe <arg@10kloc.org>
Date:   Wed, 30 Aug 2006 13:00:30 +0200

small fix in config.arg.h
Diffstat:
Mconfig.arg.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/config.arg.h b/config.arg.h
@@ -27,9 +27,9 @@ static Key key[] = { \
     { 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 } }, \