This commit is contained in:
tavo-wasd 2023-11-02 18:50:41 -06:00
parent 6a12a8cd7b
commit d6bd28d5ce

View file

@ -1,11 +1,12 @@
#!/bin/sh #!/bin/sh
# Prompt for power options using dmenu # Prompt for power options using dmenu
option=$(printf "Shutdown\nRestart" | menu "Power:") option=$(printf "Shutdown\nRestart\nLog out" | menu "Power:")
case "$option" in case "$option" in
"Shutdown") sudo poweroff ;; "Shutdown") sudo poweroff ;;
"Restart") sudo reboot ;; "Restart") sudo reboot ;;
"Log out") killall xinit;;
*) exit 1 ;; *) exit 1 ;;
esac esac