[scripts] feat: add "mode" variable to xrandr setup

This commit is contained in:
David JULIEN 2022-11-22 10:29:49 +01:00
parent cceef6fe61
commit 46b806234d
1 changed files with 2 additions and 1 deletions

View File

@ -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.