summaryrefslogtreecommitdiff
path: root/launch/dmenu_runapp
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-12-27 14:21:06 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2021-12-27 14:21:06 -0600
commitea8ec2d2776fb7e3ea44c4416fac7e662594f351 (patch)
treefdd1c47ba32c40acdd23bf49299bd3f57d453939 /launch/dmenu_runapp
parentf4b77c42ca78c5265c4754caeef5289e3841f5e9 (diff)
downloadscripts-ea8ec2d2776fb7e3ea44c4416fac7e662594f351.tar.xz
scripts-ea8ec2d2776fb7e3ea44c4416fac7e662594f351.zip
dmenu runapp script and xvsync
Diffstat (limited to 'launch/dmenu_runapp')
-rwxr-xr-xlaunch/dmenu_runapp5
1 files changed, 3 insertions, 2 deletions
diff --git a/launch/dmenu_runapp b/launch/dmenu_runapp
index bf0e148..2de77f4 100755
--- a/launch/dmenu_runapp
+++ b/launch/dmenu_runapp
@@ -1,4 +1,5 @@
#!/bin/sh
apps=/usr/share/applications
-name="$(grep -rh -m1 '^Name=' $apps | cut -d'=' -f2- | sort | uniq | dmenu "$@")"
-$(grep '^Exec=[^%]*' -o -m1 $(grep -rl -m1 "$name" $apps) | cut -d'=' -f2-) &
+name="$(grep -h -m1 '^Name=' $apps/* | cut -d'=' -f2- | sort | uniq | dmenu "$@")"
+#$(grep '^Exec=[^%]*' -o -m1 $(grep -l -m1 "$name" $apps/*) | cut -d'=' -f2-) &
+gtk-launch $(basename `grep -l -m1 "$name" $apps/*` .desktop) &