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 () {
case "$(printf "shutdown\\nreboot" | $DMENU -p "Choose your poison")" in
"shutdown") poweroff ;;
"reboot") reboot ;;
"shutdown") loginctl poweroff ;;
"reboot") loginctl reboot ;;
esac
}