From 9fb919bb1ff1b38ece25973662aa595bec3b7328 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 17 Apr 2023 16:28:44 +0200 Subject: renamed dm scripts to m scripts --- bin/guiscripts/mapimg | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/guiscripts/mapimg (limited to 'bin/guiscripts/mapimg') 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}"* -- cgit v1.2.3