dotfiles/bin/switch-to-monitor

10 lines
154 B
Plaintext
Raw Normal View History

2023-01-30 22:00:53 +00:00
#!/usr/bin/env bash
set -ueo pipefail
MONITOR_ID="${MONITOR_ID:-HDMI-1}"
2023-01-30 22:00:53 +00:00
xrandr \
--output "${MONITOR_ID}" --mode 2560x1440 \
2023-01-30 22:00:53 +00:00
--output eDP-1 --off