Fix powermenu

This commit is contained in:
samedamci 2020-03-16 16:04:42 +01:00
parent 103bba6676
commit eae0eb4406

View File

@ -1,11 +1,11 @@
#!/usr/bin/env sh
WHAT="$(printf "Shutdown\nSuspend\nLock\nReboot" | dmenu -i -p 'What do you want?')"
WHAT="$(printf "Shutdown\nSuspend\nLock\nReboot" | dmenu -i -p 'What do you want?' -h 24)"
if [ -z "$WHAT" ]; then exit; fi
case "$WHAT" in
Shutdown) systemctl poweroff;;
Suspend) systemctl suspend;;
Lock) sh ~/.scripts/lockscreen.sh;;
Lock) sh ~/.scripts/lockscreen;;
*) systemctl reboot
esac