dotfiles/bin/switch-to-laptop-screen

11 lines
204 B
Bash
Executable file

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