Files
NixOS-configs/modules/hypr/screenON
2025-05-06 22:53:14 -05:00

13 lines
354 B
Plaintext
Executable File

# Your main monitor (change this)
MONITOR="DP-1"
# Turn monitor back on (you may want to change these options)
hyprctl keyword monitor $MONITOR,highrr,auto,1
# Get name of headless display
HEADLESS=$(hyprctl -j monitors | jq -r '.[] | select(.name | test("HEADLESS-"; "i")).name')
# Remove headless virtual display
hyprctl output remove "$HEADLESS"