From: Phillip Berndt Date: Thu, 30 Jan 2014 15:35:07 +0000 (+0100) Subject: Apply normal rotation unless another one is set X-Git-Tag: 1.0~142 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=007920e83cf934f765d4424fab8148c9611eaacc;p=deb_pkgs%2Fautorandr.git Apply normal rotation unless another one is set --- diff --git a/autorandr b/autorandr index 1317061..2a2b0c1 100755 --- 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