gui menus

This commit is contained in:
tavo-wasd 2024-02-03 00:23:35 -06:00
parent ad88697249
commit cfbd047ae1
2 changed files with 12 additions and 0 deletions

5
scripts/menu/kmenu Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
LIST="$(while read line ; do printf "$line $line " ; done < "${1:-/dev/stdin}")"
kdialog --menu "Select an item:" $LIST

7
scripts/menu/zmenu Executable file
View file

@ -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