arch/pkg/de-p1st-rotate
2021-09-29 18:38:46 +02:00
..
etc/de-p1st-rotate Update 'pkg/de-p1st-rotate/etc/de-p1st-rotate/config.cfg' 2021-09-29 18:38:46 +02:00
usr minor 2021-07-25 12:14:36 +02:00
launchers-with-left-and-right-arrow-icons.png add screenshot 2021-06-17 20:10:08 +02:00
PKGBUILD minor 2021-07-25 12:14:36 +02:00
README.md minor 2021-07-25 11:23:03 +02:00

Screen rotation scripts

Usage - XFCE4

Install the optional dependency iio-sensor-proxy or iio-sensor-proxy-git.

Create a launcher with an icon symbolising "screen rotation" and use the following command:

de-p1st-rotate-screen

Every time you click on the launcher, the screen gets rotated to the current device orientation.

Usage without acceleration sensor - XFCE4

Create two launchers, one with icon "arrow left" the other one with "arrow right" and use the following commands:

de-p1st-rotate-screen "left"
de-p1st-rotate-screen "normal"

With these two launchers rotating the screen left into portrait mode or back to landscape mode is just one quick click away.

screenshot of the two launcher icons

inotifywait

TODO: Use ionotifywait to periodically call the rotation script.

See: https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu

Surface Go 2

monitor-sensor --accell

just returns orientation: undefined.

After I switched to iio-sensor-proxy-git it was working until I rebooted. Since then it does not work as well ...

TODO: Open an issue here: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy