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