summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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