about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-10-13 18:47:24 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-10-13 18:47:24 +0200
commitb60406cb9b599e03666dfedb916f2a3690e13879 (patch)
tree28f9d4aea884cc5ce3a8a67a8a70fd8e6ca3c2e2
parentce9a9934ec7f58398cc62f2653fcccae5fec1853 (diff)
downloaddwm-b60406cb9b599e03666dfedb916f2a3690e13879.tar.gz
using lsx instead of Jukka's shell construct
-rw-r--r--config.arg.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/config.arg.h b/config.arg.h
index 1a63ac8..721e532 100644
--- a/config.arg.h
+++ b/config.arg.h
@@ -26,10 +26,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 = "exe=\"$(IFS=:; for dir in $PATH; do " \
-			 "for file in \"$dir\"/*; do [ -x \"$file\" ] && echo \"${file##*/}\"; done; done " \
-			 "| sort -u | dmenu -font '"FONT"' -normbg '"NORMBGCOLOR"' -normfg '"NORMFGCOLOR"' " \
-			 "-selbg '"SELBGCOLOR"' -selfg '"SELFGCOLOR"')\" && exec $exe" } }, \
+		{ .cmd = "exe=\"$(lsx `echo $PATH | sed 's/:/ /g'` | sort -u " \
+			" | dmenu -font '"FONT"' -normbg '"NORMBGCOLOR"' -normfg '"NORMFGCOLOR"' " \
+			"-selbg '"SELBGCOLOR"' -selfg '"SELFGCOLOR"')\" && exec $exe" } }, \
 	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
 	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
 	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
f5174. Allow "source ranger ranger" again' href='/akspecs/ranger/commit/ranger.py?h=v1.4.1&id=8fa8705476d5023083bc27a3fddaee8402ac94e5'>8fa87054 ^
aefd8048 ^
8fa87054 ^


a66c4a26 ^

f027adc0 ^
b289f679 ^

5c210a96 ^

3de15ddd ^

fb275079 ^

5c210a96 ^
3d566884 ^
e30d16cb ^
621a1a39 ^
c44b726e ^
465bff73 ^




f8e96a97 ^
b289f679 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52