summaryrefslogtreecommitdiffstats
path: root/roles/hyprland
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-23 09:27:06 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-23 16:41:06 +0100
commit8c740e2638e5692ef690a6adf49addc9297122ee (patch)
tree6e0f304789f84a1a8d8e901b114561cf8e579eee /roles/hyprland
parent2305f74bb7c282e7f74ee6ea8c2e41e05b59747c (diff)
Fix hyprshutdown menu entries to run the correct commands
Diffstat (limited to 'roles/hyprland')
-rwxr-xr-xroles/hyprland/files/scripts/power.sh6
1 files 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