Plasma / Wayland Screen auto-rotation / open-rc
Install iio-sensor-proxy-git
paru iio-sensor-proxy-git
Found this near perfect rc-service script
https://git.alpinelinux.org/aports/tree/community/iio-sensor-proxy/iio-sensor-proxy.initd
sudo nano /etc/init.d/iio-sensor-proxy
#!/sbin/openrc-run
command="/usr/lib/iio-sensor-proxy"
depend() {
need dbus
}
sudo chmod +x /etc/init.d/iio-sensor-proxy
sudo reboot
Enable touch mode:
Settings> General Behavior>Touch mode
You should now have the option for auto screen rotation in Plasma:
Settings>Display & Monitor>Orientation>Automatic
Bonus fun:
To monitor the iio-sensor-proxy:
monitor-sensor