logout
This commit is contained in:
parent
6a12a8cd7b
commit
d6bd28d5ce
1 changed files with 2 additions and 1 deletions
|
@ -1,11 +1,12 @@
|
|||
#!/bin/sh
|
||||
# Prompt for power options using dmenu
|
||||
|
||||
option=$(printf "Shutdown\nRestart" | menu "Power:")
|
||||
option=$(printf "Shutdown\nRestart\nLog out" | menu "Power:")
|
||||
|
||||
case "$option" in
|
||||
"Shutdown") sudo poweroff ;;
|
||||
"Restart") sudo reboot ;;
|
||||
"Log out") killall xinit;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue