diff --git a/scripts/menu/kmenu b/scripts/menu/kmenu new file mode 100755 index 0000000..dde5ef6 --- /dev/null +++ b/scripts/menu/kmenu @@ -0,0 +1,5 @@ +#!/bin/sh + +LIST="$(while read line ; do printf "$line $line " ; done < "${1:-/dev/stdin}")" + +kdialog --menu "Select an item:" $LIST diff --git a/scripts/menu/zmenu b/scripts/menu/zmenu new file mode 100755 index 0000000..d3c7e43 --- /dev/null +++ b/scripts/menu/zmenu @@ -0,0 +1,7 @@ +#!/bin/sh + +TITLE="$1" +PROMPT="$2" +LIST="$(while read line ; do echo "$line" ; done < "${1:-/dev/stdin}")" + +zenity --list --title="$TITLE" --text="" --column="$PROMPT" $LIST