Fix powermenu

This commit is contained in:
Wiktor Zykubek 2020-03-16 16:04:42 +01:00
parent eee2102c47
commit 0571820a6a

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