about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-30 11:21:56 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-30 11:21:56 +0200
commit79259acc1260595f657dfc4c2cf64fa6309192cf (patch)
treed9fdc1d2954c2081b8ddeaa03b5e91c4714c542b
parent5a3bea2d69c8ad864667de5142a9777aa41e1448 (diff)
downloaddwm-79259acc1260595f657dfc4c2cf64fa6309192cf.tar.gz
now using Salmi's menu command
-rw-r--r--config.arg.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/config.arg.h b/config.arg.h
index 41ae9b1..7a03460 100644
--- a/config.arg.h
+++ b/config.arg.h
@@ -27,8 +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 `ls -lL /usr/bin /usr/X11R6/bin /usr/local/bin 2>/dev/null | " \
-			"awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u | dmenu`" } }, \
+		{ .cmd = "exec \"$(IFS=:; for dir in $PATH; do " \
+			"for file in \"$dir\"/*; do [ -x \"$file\" ] && echo \"${file##*/}\"; done; " \
+			"done | sort -u | dmenu)\"" } }, \
 	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
 	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
 	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
;vc@akkartik.com> 2015-07-29 01:23:22 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-07-29 01:23:22 -0700 1880 - switch .mu files to new type-deducing idiom' href='/akkartik/mu/commit/factorial.mu?h=main&id=ce87c19ee42bc52c5ab9a1ee3c431a9423e5a885'>ce87c19e ^
bc643692 ^
08b48a8d ^
c1d92c9d ^
ce87c19e ^

32241605 ^
b96af395 ^
08b48a8d ^
b96af395 ^


bc643692 ^
b96af395 ^
bafc7192 ^
b96af395 ^


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