screen rotation daemon
Go to file
Esra Fernau 80431661d7
Merge pull request #20 from Vassili-Dev/variable_normalization_factor
Move normalization factor to cli argument
2021-08-17 21:17:12 +02:00
src Changed erroneous default.conf default 2021-08-17 06:36:20 -04:00
.gitignore 🌱 2019-05-18 22:27:15 +02:00
Cargo.lock 🔖 v0.1.3 2020-01-04 23:50:44 +01:00
Cargo.toml Adding name to Cargo.toml 2020-11-02 16:53:24 +00:00
LICENSE add LICENSE 2019-08-16 20:23:42 +02:00
README.md Update README.md 2021-06-08 15:32:21 +00:00

README.md

rot8

automatic display rotation using built-in accelerometer

Automatic rotate modern Linux desktop screen and input devices. Handy for convertible touchscreen notebooks like the Kaby Lake model of the HP Spectre x360.

Compatible with sway and X11.

Available in the Arch User Repository: rot8-git.

Rust language and the cargo package manager are required to build the binary.

$ git clone https://github.com/efernau/rot8
$ cd rot8 && cargo build --release
$ cp target/release/rot8  /usr/bin/rot8

or

$ cargo install rot8

For Sway map your input to the output device:


$ swaymsg input <INPUTDEVICE> map_to_output <OUTPUTDEVICE>

Call rot8 from sway configuration file ~/.config/sway/config:


exec rot8

For X11 set Touchscreen Device


rot8 --touchscreen <TOUCHSCREEN>

there are the following args.


--sleep // Set sleep millis (500)
--display // Set Display Device (eDP-1)
--touchscreen // Set Touchscreen Device X11 (ELAN0732:00 04F3:22E1)
--keyboard // Set keyboard to deactivate upon rotation
--threshold // Set a rotation threshold between 0 and 1 (0.5)