X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr;h=fa575b196346552dd44c10666468ce428caef9b8;hb=8429886318b0788c4e18022b03b1c68319c900c7;hp=5937f8a2a8ad3ded1cd9dd27a3d9d7b3535b1bcf;hpb=f4cce4dc3928ba3f917208c31693abc807b1ff3c;p=deb_pkgs%2Fautorandr.git 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() {