#!/bin/bash # omarchy:summary=Return success if the focused or named Hyprland monitor is an Apple display. # omarchy:args=[monitor] monitor="${1:-}" hyprctl monitors -j | jq -e --arg monitor "$monitor" ' .[] | select(if $monitor == "" then .focused == true else .name == $monitor end) | select(.make == "Apple Computer Inc" and (.model | test("StudioDisplay|ProDisplayXDR|Studio XDR"))) ' >/dev/null