dotfiles/bin/switch-to-laptop-screen

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 eDP-1 --mode 1920x1200 \
--output "${MONITOR_ID}" --off