summaryrefslogtreecommitdiff
path: root/bin/guiscripts/dmdsktp
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-03 19:53:22 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-03 19:53:22 +0100
commit97487ed1431ed0cfa4f5b6facd69dbd0f13911f4 (patch)
treecacc50f96ebb5a9b2a3c8d374bbf9e8ccedc64cf /bin/guiscripts/dmdsktp
parent5522d426e21cbedb8791ee4399ff7d28a4c6f10e (diff)
renamed dmscripts to guiscripts
Diffstat (limited to 'bin/guiscripts/dmdsktp')
-rwxr-xr-xbin/guiscripts/dmdsktp12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/guiscripts/dmdsktp b/bin/guiscripts/dmdsktp
new file mode 100755
index 0000000..2e0ef24
--- /dev/null
+++ b/bin/guiscripts/dmdsktp
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Searches through .desktop files and prompt to launch them via dmenu
+gtk-launch \
+ "$(\
+ find ~/.local/share/applications \
+ -maxdepth 1 \
+ -type f \
+ -not -iname "wine-extension*" -a -iname "*.desktop" \
+ -printf "%f\n" \
+ | cut -d. -f1 \
+ | dmenu -i -p "app:" -g 1 \
+ )"