dotfiles/bin/switch-to-laptop-screen

10 lines
154 B
Bash
Executable file

#!/usr/bin/env bash
set -ueo pipefail
MONITOR_ID="${MONITOR_ID:-HDMI-1}"
xrandr \
--output eDP-1 --mode 1920x1200 \
--output "${MONITOR_ID}" --off