X11 screen and input rotation
Published (last updated )
xrandr -o normal
xinput set-prop $ID "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
xrandr -o left
xinput set-prop $ID "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
xrandr -o inverted
xinput set-prop $ID "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
xrandr -o right
xinput set-prop $ID "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1