Use loginctl
This commit is contained in:
parent
5b9309eaed
commit
f999944f1a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue