Ensure headless monitors aren't counted

This commit is contained in:
David Heinemeier Hansson
2026-04-23 10:49:24 +02:00
parent 3618eebdaa
commit 2982ac4725
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/bash
# Returns true when no monitors are connected
# Returns true when no real monitors are connected (ignoring Hyprland's HEADLESS fallback)
(( $(hyprctl monitors -j 2>/dev/null | jq length) == 0 ))
(( $(hyprctl monitors -j 2>/dev/null | jq '[.[] | select(.name | startswith("HEADLESS") | not)] | length') == 0 ))