From f999944f1a0e28410e157b136b7d3f904f78d0d9 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Sun, 30 Apr 2023 17:03:24 +0200 Subject: [PATCH] Use loginctl --- dmenu-power-menu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmenu-power-menu b/dmenu-power-menu index ed67ada..877c8d1 100755 --- a/dmenu-power-menu +++ b/dmenu-power-menu @@ -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 }