8000 GitHub - vnz/cosmic-iio: WIP daemon to listen for accelerometer orientation changes and transform display accordingly · GitHub
[go: up one dir, main page]

Skip to content

About

WIP daemon to listen for accelerometer orientation changes and transform display accordingly

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

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

Requirements

Have iio-sensor-proxy installed and running

Configuration

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-2

If no internal panel is found, the error lists the outputs that were seen.

Installation

just build-release
sudo just install
just start

to uninstall:

just stop
sudo just uninstall

TODO

  • Arch and Deb packages
  • Handle touch-screen rotation (needs cosmic support) seems to work as expected now
  • More 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 a COSMIC_IIO_OUTPUT override

Contributers wanted

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 :)

Prior art

https://github.com/okeri/iio-sway https://github.com/JeanSchoeller/iio-hyprland/

About

WIP daemon to listen for accelerometer orientation changes and transform display accordingly

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0