summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/scripts/dmenu-desktop12
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/scripts/dmenu-desktop b/.local/bin/scripts/dmenu-desktop
new file mode 100755
index 0000000..82504e1
--- /dev/null
+++ b/.local/bin/scripts/dmenu-desktop
@@ -0,0 +1,12 @@
+#!/bin/sh
+# find "/usr/share/applications" "$XDG_DATA_HOME/applications" -type f \
+ # | dmenucmd -i
+
+find "/usr/share/applications" "$XDG_DATA_HOME/applications" -type f \
+ | xargs grep "^Name=" \
+ | sed -e "s/\(.*\):Name=\(.*\)/\2\t\1/g" - \
+ | sort \
+ | dmenucmd \
+ | cut -f2 \
+ | xargs basename \
+ | xargs gtk-launch