From 9e052233a2dc1da31f766496848231605cfe9ae1 Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Mon, 23 Feb 2026 09:27:06 +0100 Subject: Fix hyprshutdown menu entries to run the correct commands --- roles/hyprland/files/scripts/power.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/hyprland/files/scripts/power.sh b/roles/hyprland/files/scripts/power.sh index 77e37626..60e4ea26 100755 --- a/roles/hyprland/files/scripts/power.sh +++ b/roles/hyprland/files/scripts/power.sh @@ -27,12 +27,12 @@ ACTION=$(printf ' Shutdown\n󰑙 Reboot\n󰤄 Suspend' | tofi \ case "$ACTION" in *Shutdown*) - hyprctl dispatch exec hyprshutdown --no-fork -t "Shutting down..." --post-cmd "systemctl poweroff" + hyprshutdown -t "Shutting down..." --post-cmd "systemctl poweroff" ;; *Reboot*) - hyprctl dispatch exec hyprshutdown --no-fork -t "Restarting..." --post-cmd "systemctl reboot" + hyprshutdown -t "Restarting..." --post-cmd "systemctl reboot" ;; *Suspend*) - loginctl lock-session && systemctl suspend + systemctl suspend ;; esac -- cgit v1.2.3