Use loginctl
This commit is contained in:
parent
5b9309eaed
commit
f999944f1a
@ -8,8 +8,8 @@ load_config () {
|
||||
|
||||
menu () {
|
||||
case "$(printf "shutdown\\nreboot" | $DMENU -p "Choose your poison")" in
|
||||
"shutdown") poweroff ;;
|
||||
"reboot") reboot ;;
|
||||
"shutdown") loginctl poweroff ;;
|
||||
"reboot") loginctl reboot ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user