Files
blomarchy/bin/blob-hypr-monitor-external
T

7 lines
238 B
Bash
Executable File

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