Simple program which switches through two alternating screen orientations/roations.
usage: pivot [options] [ rotation_1 [ rotation_2 ]]
-h, --help prints help
-d, --display display
-f, --force force switching
rotations: left, right, normal, inverted
default rotations: left, normal
Switches between right and normal orientation, no matter what the actual orientation is:
$ pivot -f right
Switches between left and inverted (upside down), unless the actual orientation is none of them:
$ pivot left inverted
See Xrandr (3)