Added hyprland config and scripts
Some checks failed
bluebuild / Build Custom Image (recipe.yml) (push) Failing after 26s

This commit is contained in:
2025-05-14 12:21:35 -04:00
parent b71aa51dc0
commit 4b29099855
20 changed files with 484 additions and 0 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/hyprland/scripts/hypr_power/hypr_close_clients
hyprctl dispatch exit

View File

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

View File

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