fuzzel has an option for what I want lol
This commit is contained in:
parent
79b9f435dd
commit
6ad5b53896
2 changed files with 2 additions and 8 deletions
|
|
@ -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]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue