Fix powermenu
This commit is contained in:
parent
103bba6676
commit
eae0eb4406
@ -1,11 +1,11 @@
|
|||||||
#!/usr/bin/env sh
|
#!/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
|
if [ -z "$WHAT" ]; then exit; fi
|
||||||
|
|
||||||
case "$WHAT" in
|
case "$WHAT" in
|
||||||
Shutdown) systemctl poweroff;;
|
Shutdown) systemctl poweroff;;
|
||||||
Suspend) systemctl suspend;;
|
Suspend) systemctl suspend;;
|
||||||
Lock) sh ~/.scripts/lockscreen.sh;;
|
Lock) sh ~/.scripts/lockscreen;;
|
||||||
*) systemctl reboot
|
*) systemctl reboot
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user