y# Cosmic-iio
Note
I'm too busy to maintain this service at the moment. Feel free to fork/steal/use/submit-prs, for the moment this solves my personal use-case, I may or may not get around to do bugfixes or other features
Reads iio-sensor-proxy accelerometer orientation changes and transforms display in COSMIC accordingly
Have iio-sensor-proxy installed and running
The display to rotate is detected automatically: the first enabled output whose
name looks like an internal panel (eDP*, LVDS*, DSI*) is used.
Set COSMIC_IIO_OUTPUT to override that, e.g. if your panel is named
differently or you want to rotate a specific output:
systemctl --user set-environment COSMIC_IIO_OUTPUT=eDP-2If no internal panel is found, the error lists the outputs that were seen.
just build-release
sudo just install
just startto uninstall:
just stop
sudo just uninstall- Arch and Deb packages
Handle touch-screen rotation (needs cosmic support)seems to work as expected nowMore robust display output selection (don't want to transform all connected display, only the display on the device, but can't identify this display yet)internal panels are now detected by name prefix, with aCOSMIC_IIO_OUTPUToverride
I'm not an expert by any stretch with regards to systemd, dbus, iio, cosmic or rust for that matter. Please roast my code and submit pull-requests :)
https://github.com/okeri/iio-sway https://github.com/JeanSchoeller/iio-hyprland/