From 46b806234de311ccd6a44a7b475bd3477a21d923 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Tue, 22 Nov 2022 10:29:49 +0100 Subject: [PATCH] [scripts] feat: add "mode" variable to xrandr setup --- .local/bin/displayselect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/bin/displayselect b/.local/bin/displayselect index 3c58a34..a511af4 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -52,8 +52,9 @@ default() { } setup() { + [ -z "$mode" ] && mode="auto" xrandr --output "$primary" --auto --scale 1.0x1.0 \ - --output "$secondary" --"$direction"-of "$primary" --auto + --output "$secondary" --"$direction"-of "$primary" --$mode } morescreen() { # If multi-monitor is selected and there are more than two screens.