Files
omarchycn/bin/omarchy-hyprland-monitors-none
T

6 lines
220 B
Bash
Executable File

#!/bin/bash
# Returns true when no real monitors are connected (ignoring Hyprland's HEADLESS fallback)
(( $(hyprctl monitors -j 2>/dev/null | jq '[.[] | select(.name | startswith("HEADLESS") | not)] | length') == 0 ))