Fix powermenu and move it from dmenu to rofi
This commit is contained in:
parent
cdd755df2a
commit
568693fa8b
@ -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?' -h 24)"
|
WHAT="$(printf "Shutdown\nSuspend\nLock\nReboot" | rofi -dmenu -i -p 'What do you want?' -l 4)"
|
||||||
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) sh ~/.scripts/lockscreen; systemctl suspend;;
|
Suspend) lockscreen; systemctl suspend;;
|
||||||
Lock) sh ~/.scripts/lockscreen;;
|
Lock) lockscreen;;
|
||||||
Reboot) systemctl reboot
|
Reboot) systemctl reboot
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user