Use loginctl

This commit is contained in:
CronyAkatsuki 2023-04-30 17:03:24 +02:00
parent 5b9309eaed
commit f999944f1a

View File

@ -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
} }