From aa0d694b9aae2c2a82b80bc81688386e07ef4b45 Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Wed, 13 Apr 2016 18:06:03 +0200 Subject: [PATCH] prefer extending screen to right over left --- bin/xrandr-toggle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/xrandr-toggle b/bin/xrandr-toggle index bac6c03..d54c60d 100755 --- a/bin/xrandr-toggle +++ b/bin/xrandr-toggle @@ -227,12 +227,12 @@ class RandRStateMachine(object): def NextState(self): # if we have a clone, then next pair to the left if self.IsClone(): - logging.info('CLONE -> PAIR_LEFT') - self.SetPairExtLeft() - # if we have a pair to the left, then next pair to the right - elif self.IsPairExtLeft(): - logging.info('PAIR_LEFT -> PAIR_RIGHT') + logging.info('CLONE -> PAIR_RIGHT') self.SetPairExtRight() + # if we have a pair to the left, then next pair to the right + elif self.IsPairExtRight(): + logging.info('PAIR_RIGHT -> PAIR_LEFT') + self.SetPairExtLeft() # else, just set cloning else: logging.info('UNKNOWN (or PAIR_RIGHT) -> CLONE')