Files
omarchycn/bin/omarchy-hyprland-monitor-external-active
T

7 lines
231 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Returns true when Hyprland has an active external monitor
# omarchy:hidden=true
hyprctl monitors -j | jq -e '.[] | select(.name | contains("eDP") | not) | select(.disabled == false)' >/dev/null 2>&1