forked from Shinonome/dots-hyprland
Enable hypr_mon_guard by default
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user