This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Auto rotate screen based on device orientation | |
# Receives input from monitor-sensor (part of iio-sensor-proxy package) | |
# Screen orientation is set based upon accelerometer position | |
# This script should be added to startup applications for the user | |
# 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.). |