From ee43ad33339bc64c8873a7e46982b592bb0fd94c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 21 Nov 2023 23:15:06 +0000 Subject: [PATCH] fix(scripts): make monitor mode configurable --- bin/switch-to-laptop-screen | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/switch-to-laptop-screen b/bin/switch-to-laptop-screen index b19a131..bb91cf7 100755 --- a/bin/switch-to-laptop-screen +++ b/bin/switch-to-laptop-screen @@ -3,7 +3,8 @@ set -ueo pipefail MONITOR_ID="${MONITOR_ID:-HDMI-1}" +MONITOR_MODE="${MONITOR_MODE:-1920x1080}" xrandr \ - --output eDP-1 --mode 1920x1200 \ + --output eDP-1 --mode "${MONITOR_MODE}" \ --output "${MONITOR_ID}" --off