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
|
#!/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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue