Renamed hyprland folder in /usr/share to hypr to override default hyprland configs
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (push) Successful in 57s

This commit is contained in:
2025-05-14 13:43:23 -04:00
parent 6430da2b61
commit c4fbd9fa75
23 changed files with 16 additions and 16 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/scripts/hypr_power/hypr_close_clients
hyprctl dispatch exit

View File

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

View File

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