Moved hyprland config to its own folder and created a session file specifically for hydro-os config hyprland.
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (push) Successful in 23s

This commit is contained in:
2025-05-14 15:39:28 -04:00
parent c4fbd9fa75
commit 2a268978a7
26 changed files with 48 additions and 40 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')
hyprctl --batch "$HYPRCMDS" >>/tmp/hyprexitwithgrace.log 2>&1
notify-send "power controls" "Closing Applications..."
sleep 2
COUNT=$(hyprctl clients | grep "class:" | wc -l)
if [ "$COUNT" -eq "0" ]; then
notify-send "power controls" "Closed Applications."
return
else
notify-send "power controls" "Some apps didn't close. Not shutting down."
exit 1
fi

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
/usr/share/hypr-hydro-os/scripts/hypr_power/hypr_close_clients
hyprctl dispatch exit

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
/usr/share/hypr-hydro-os/scripts/hypr_power/hypr_close_clients
systemctl reboot

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
/usr/share/hypr-hydro-os/scripts/hypr_power/hypr_close_clients
systemctl poweroff