From 8429886318b0788c4e18022b03b1c68319c900c7 Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Sat, 13 Dec 2014 15:59:41 +0100 Subject: [PATCH] Enable outputs in pairs of two (Follow-up to commit f4cce4d) --- autorandr | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autorandr b/autorandr index 5937f8a..fa575b1 100755 --- a/autorandr +++ b/autorandr @@ -282,6 +282,7 @@ load_cfg_xrandr() { # * Remaining outputs are appended as they appear # * Keep everything in hold buffer until the last line # sed 4: Remove empty lines caused by G and H on empty hold buffer + # sed 5: Join lines enabling screens in pairs of two (See https://github.com/phillipberndt/autorandr/pull/6) sed 's/^/--/' "$1" | sed -e ' :START /\n--output/{P;D} @@ -304,7 +305,9 @@ load_cfg_xrandr() { H $!d x' | sed -e ' - /./ !d' | xargs -L 1 $XRANDR + /./ !d' | sed -e ' + /--mode/{ N; s/\n/ /; } + ' | xargs -L 1 $XRANDR } load_cfg_disper() { -- 2.39.2