Automatic screen rotation daemon for X11
Switch branches/tags
Nothing to show
Clone or download
Latest commit e1de8b7 Nov 10, 2018
Permalink
Failed to load latest commit information.
aur AUR pkgbuild cleanup Jul 5, 2018
src Rotate all devices that have a rotation matrix property. Mar 27, 2018
.gitignore Add orientation sensor Mar 4, 2018
CMakeLists.txt Single instance check Mar 4, 2018
LICENSE
README.md Also rotate pointer (touch screen) coordinates Mar 4, 2018

README.md

Simple Qt screen rotation manager

Reads from accelerometer sensors, and rotate display according to the readings.

Works only in X11 for now.

Similar to the current solution implemented in Gnome, but works on all other desktop environments as well (KDE, XFCE, etc).

Compilation requirements

  • cmake
  • gcc
  • Qt5 (with modules x11extras, sensors)
  • xrandr
  • XInput (Xi)

On ubuntu, run the following command to install dependencies:

sudo apt install -y git cmake build-essential qtbase5-dev libxrandr-dev libxi-dev libqt5x11extras5-dev libqt5sensors5-dev 

Building

git clone https://github.com/GuLinux/ScreenRotator
mkdir ScreenRotator/build
cd ScreenRotator/build
cmake ..
make all
sudo make install

Links

Main icon: https://www.iconfinder.com/icons/326583/orientation_rotation_screen_icon#size=256