Automatically rotates screen based on device orientation. Only works under KDE Plasma, but both with Wayland and X.
Rotation is disabled when multiple screens are connected.
Tested on Manjaro with Wayland & X.
This is loosely based upon kde-auto-rotate.
apt install iio-sensor-proxy
pacman -Syu iio-sensor-proxy
Clone this repo somewhere permanent and run the install.sh
script. For example:
cd ~/opt
git clone https://github.com/Garbaz/kde-auto-rotate-kscreen.git
cd kde-auto-rotate-kscreen
./install.sh
Run the uninstall.sh
script.