diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-24 21:11:27 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-24 21:11:27 +0200 |
commit | 8b9e93321bfd229b8a29fdd1fc60de670e16636d (patch) | |
tree | 60963be78e9bca76d996be3de468fc4e03deb137 /bin/menuscripts/mapimg | |
parent | 067b271a243dafcf652fe7cfe85e723d25ff1a64 (diff) |
[menuscripts] use 'commander' in menuscripts
Diffstat (limited to 'bin/menuscripts/mapimg')
-rwxr-xr-x | bin/menuscripts/mapimg | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/bin/menuscripts/mapimg b/bin/menuscripts/mapimg index 151b8d0..a959d46 100755 --- a/bin/menuscripts/mapimg +++ b/bin/menuscripts/mapimg @@ -1,17 +1,8 @@ #!/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)" + commander -x -l -p "Appimage:")" +[ "$appimage" ] || exit 1 setsid "$dest/${appimage:-NOSEL}"* |