]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Apply normal rotation unless another one is set
authorPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 30 Jan 2014 15:35:07 +0000 (16:35 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 30 Jan 2014 15:35:07 +0000 (16:35 +0100)
autorandr

index 1317061aa4e8f1ecd263c389f00c3b09b2e3a181..2a2b0c1e40704312f4174568a4a309a4aa814ff8 100755 (executable)
--- a/autorandr
+++ b/autorandr
@@ -135,12 +135,13 @@ current_cfg_xrandr() {
                if (($4 == "left") || ($4 == "right")) {
                        split(A[1], B, "x");
                        A[1] = B[2]"x"B[1];
+                       print "rotate "$4;
+               }
+               else {
+                       print "rotate normal";
                }
                print "mode "A[1];
                print "pos "A[2]"x"A[3];
-               if ($4 !~ /^\(/) {
-                       print "rotate "$4;
-               }
                next;
        }
        # disconnected or disabled displays