Apply normal rotation unless another one is set

This commit is contained in:
Phillip Berndt 2014-01-30 16:35:07 +01:00
parent 8af170c6ab
commit 007920e83c

View File

@ -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