From c784d7ff72a1580bac3ab52515ac779070b32e2e Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 20 Feb 2024 12:35:16 +0100 Subject: [PATCH] Fix --- templates/monitors.sh.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/monitors.sh.j2 b/templates/monitors.sh.j2 index 6aadf50..136807d 100755 --- a/templates/monitors.sh.j2 +++ b/templates/monitors.sh.j2 @@ -6,9 +6,9 @@ num_monitors="$(echo "${monitors}" | wc -l)" if [[ $num_monitors -ge 3 ]]; then xrandr --output eDP-1 --off --output DP-4 --left-of DP-3 --primary --output DP-3 --auto else - primary="$(echo "${monitors}" | tail -n 1)" - output="$(echo "${monitors}" | head -n 1)" - command="xrandr --output --output ${primary} --primary" + primary="$(echo "${monitors}" | head -n 1)" + output="$(echo "${monitors}" | tail -n 1)" + command="xrandr --output ${primary} --primary" if [[ ${output} != ${primary} ]]; then command="${command} --right-of ${output} --output ${output} --auto" fi