fuzzel has an option for what I want lol

This commit is contained in:
KoenDR06 2026-02-02 21:55:57 +01:00
parent 79b9f435dd
commit 6ad5b53896
2 changed files with 2 additions and 8 deletions

View file

@ -1,11 +1,8 @@
cmds=('shutdown now' 'reboot' 'hyprlock' 'hyprctl dispatch exit')
count=${#cmds[@]}
default=15
lines=$((count > default ? default : count))
a=$(printf ' Shut down\n Reboot\n Lock\n Log out' | fuzzel --cache /dev/null --dmenu --index --lines $lines --placeholder "Power action: " -I)
a=$(printf ' Shut down\n Reboot\n Lock\n Log out' | fuzzel --cache /dev/null --dmenu --index --minimal-lines -l $count --placeholder "Power action: " -I)
if [ -n "$a" ]; then
${cmds[a]}