From 2982ac4725ae643653c8ddb220cf438810aff1e2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 23 Apr 2026 10:49:24 +0200 Subject: [PATCH] Ensure headless monitors aren't counted --- bin/omarchy-hyprland-monitors-none | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-hyprland-monitors-none b/bin/omarchy-hyprland-monitors-none index e5061f63..231a0ba7 100755 --- a/bin/omarchy-hyprland-monitors-none +++ b/bin/omarchy-hyprland-monitors-none @@ -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 ))