CdLbB/fb-rotate

fb-rotate - A Unix utility to rotate the display on any Mac and switch the primary display back and forth between displays.