From 007920e83cf934f765d4424fab8148c9611eaacc Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Thu, 30 Jan 2014 16:35:07 +0100 Subject: [PATCH] Apply normal rotation unless another one is set --- autorandr | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.2