summaryrefslogtreecommitdiff
path: root/launch/dmenu_runapp
diff options
context:
space:
mode:
Diffstat (limited to 'launch/dmenu_runapp')
-rwxr-xr-xlaunch/dmenu_runapp4
1 files changed, 4 insertions, 0 deletions
diff --git a/launch/dmenu_runapp b/launch/dmenu_runapp
new file mode 100755
index 0000000..bf0e148
--- /dev/null
+++ b/launch/dmenu_runapp
@@ -0,0 +1,4 @@
+#!/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-) &