Skip to content

Instantly share code, notes, and snippets.

View revarcline's full-sized avatar

Alex Cline revarcline

View GitHub Profile
@revarcline
revarcline / rotate_desktop.sh
Last active January 2, 2020 08:18 — forked from mildmojo/rotate_desktop.sh
Script to rotate the screen and touch devices on modern Linux desktops. Great for convertible laptops.
#!/bin/bash
#
# rotate_desktop.sh
#
# Rotates modern Linux desktop screen and input devices to match. Handy for
# convertible notebooks. Call this script from panel launchers, keyboard
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.).
#
# Using transformation matrix bits taken from:
# https://wiki.ubuntu.com/X/InputCoordinateTransformation