From e1254e11ae320848c2fc6ce329a33db107083b9f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 17 Apr 2023 18:55:38 +0200 Subject: moved menuscripts to seperate folder --- bin/menuscripts/mapimg | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/menuscripts/mapimg (limited to 'bin/menuscripts/mapimg') diff --git a/bin/menuscripts/mapimg b/bin/menuscripts/mapimg new file mode 100755 index 0000000..151b8d0 --- /dev/null +++ b/bin/menuscripts/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