From 9a3ed8699358099ab1f9341f2a7e17691bb49733 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 20 Apr 2023 21:35:36 +0200 Subject: moved dmdsktp to menuscripts --- bin/guiscripts/dmdsktp | 21 --------------------- bin/menuscripts/mdsktp | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) delete mode 100755 bin/guiscripts/dmdsktp create mode 100755 bin/menuscripts/mdsktp (limited to 'bin') diff --git a/bin/guiscripts/dmdsktp b/bin/guiscripts/dmdsktp deleted file mode 100755 index a48aca6..0000000 --- a/bin/guiscripts/dmdsktp +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# Searches through .desktop files and prompt to launch them via dmenu -if [ "$MENUCMD" = "tofi" ] -then - menucmd="tofi" -elif [ "$MENUCMD" = "dmenu" ] -then - menucmd="dmenu -g 1 -i" -else - menucmd="fzf" -fi - -choice="$(find ~/.local/share/applications \ - -maxdepth 1 \ - -type f \ - -not -iname "wine-extension*" -a -iname "*.desktop" \ - -printf "%f\n" | - cut -d. -f1 | - $menucmd)" -test -z "$choice" && exit 1 -gtk-launch "$choice" diff --git a/bin/menuscripts/mdsktp b/bin/menuscripts/mdsktp new file mode 100755 index 0000000..a48aca6 --- /dev/null +++ b/bin/menuscripts/mdsktp @@ -0,0 +1,21 @@ +#!/bin/sh +# Searches through .desktop files and prompt to launch them via dmenu +if [ "$MENUCMD" = "tofi" ] +then + menucmd="tofi" +elif [ "$MENUCMD" = "dmenu" ] +then + menucmd="dmenu -g 1 -i" +else + menucmd="fzf" +fi + +choice="$(find ~/.local/share/applications \ + -maxdepth 1 \ + -type f \ + -not -iname "wine-extension*" -a -iname "*.desktop" \ + -printf "%f\n" | + cut -d. -f1 | + $menucmd)" +test -z "$choice" && exit 1 +gtk-launch "$choice" -- cgit v1.2.3