Enable hypr_mon_guard by default

This commit is contained in:
clsty
2025-11-13 01:20:14 +08:00
parent 6889185c3e
commit 0917ee65f2
3 changed files with 9 additions and 8 deletions
+2
View File
@@ -1,5 +1,7 @@
#!/usr/bin/bash
# This script is to prevent hyprland from not responding to any input when no monitor is enabled.
# When this script is running in background,
# it will be safe to temporarily disable monitors using hyprctl.
# The shebang cannot be #!/usr/bin/env bash , idk why
while true; do
readarray -t enabled_mons < <(hyprctl -j monitors all | jq -r '.[] | select(.disabled == false) | .name')