https://github.com/GuLinux/ScreenRotator
Automatic screen rotation daemon for X11
https://github.com/GuLinux/ScreenRotator
screen
Last synced: about 1 year ago
JSON representation
Automatic screen rotation daemon for X11
- Host: GitHub
- URL: https://github.com/GuLinux/ScreenRotator
- Owner: GuLinux
- License: gpl-3.0
- Archived: true
- Created: 2018-03-04T00:22:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-17T05:59:16.000Z (about 5 years ago)
- Last Synced: 2024-08-02T13:32:52.187Z (almost 2 years ago)
- Topics: screen
- Language: C++
- Homepage:
- Size: 78.1 KB
- Stars: 58
- Watchers: 8
- Forks: 18
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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