mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-18 23:09:57 -05:00
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