#!/usr/bin/env bash

# omarchy:summary=Returns true when Hyprland has an active external monitor
# omarchy:hidden=true


"${BASH_SOURCE[0]%/*}/omarchy-on-hyprland" || exit 1

hyprctl monitors all -j | jq -e '.[] | select(.name | test("^(eDP|LVDS|DSI)-") | not) | select(.disabled == false)' >/dev/null 2>&1
