diff --git a/bin/switch-to-laptop-screen b/bin/switch-to-laptop-screen index 7de579f..b19a131 100755 --- a/bin/switch-to-laptop-screen +++ b/bin/switch-to-laptop-screen @@ -2,6 +2,8 @@ set -ueo pipefail +MONITOR_ID="${MONITOR_ID:-HDMI-1}" + xrandr \ --output eDP-1 --mode 1920x1200 \ - --output DP-3 --off + --output "${MONITOR_ID}" --off diff --git a/bin/switch-to-monitor b/bin/switch-to-monitor index b6784ff..dea81a6 100755 --- a/bin/switch-to-monitor +++ b/bin/switch-to-monitor @@ -2,6 +2,8 @@ set -ueo pipefail +MONITOR_ID="${MONITOR_ID:-HDMI-1}" + xrandr \ - --output DP-3 --mode 2560x1440 \ + --output "${MONITOR_ID}" --mode 2560x1440 \ --output eDP-1 --off