diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-17 16:28:44 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-17 16:28:44 +0200 |
commit | 9fb919bb1ff1b38ece25973662aa595bec3b7328 (patch) | |
tree | c91238593e11189606c08d520e46d31ed1b6cd55 /bin/guiscripts/mapimg | |
parent | a1f61ef7764a543a894bf58b0db14f677323fcbe (diff) |
renamed dm scripts to m scripts
Diffstat (limited to 'bin/guiscripts/mapimg')
-rwxr-xr-x | bin/guiscripts/mapimg | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/guiscripts/mapimg b/bin/guiscripts/mapimg new file mode 100755 index 0000000..151b8d0 --- /dev/null +++ b/bin/guiscripts/mapimg @@ -0,0 +1,17 @@ +#!/bin/sh + +if [ -z "$MENUCMD" ] +then + menucmd="fzf" +elif [ "$MENUCMD" = "tofi" ] +then + menucmd='tofi --width 700 --height 300 --prompt-text Appimage:' +else + menucmd="dmenu -x -l 10 -g 1 -p Appimage:" +fi + +dest="$XDG_DATA_HOME"/appimages +appimage="$(find "$dest" -type f -printf "%f\n" | + sed 's/\.[Aa]pp[Ii]mage$//g' | + $menucmd)" +setsid "$dest/${appimage:-NOSEL}"* |