Ensure headless monitors aren't counted
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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 ))
|
||||||
|
|||||||
Reference in New Issue
Block a user