diff options
| author | Ahmed AbdelHalim <[email protected]> | 2026-02-23 09:27:06 +0100 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2026-02-23 16:41:06 +0100 |
| commit | 9e052233a2dc1da31f766496848231605cfe9ae1 (patch) | |
| tree | 6e0f304789f84a1a8d8e901b114561cf8e579eee | |
| parent | 8ec1b536ad2cd09704e4981754436333d3509879 (diff) | |
Fix hyprshutdown menu entries to run the correct commands
| -rwxr-xr-x | roles/hyprland/files/scripts/power.sh | 6 |
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 |
