-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Changing the orientation: Gnome is currently using Wayland rather than X as the default, so using xrandr has no effect. However, I can use gnome-randr-rust (available in nixpkgs via nix-shell -p gnome-randr). The following is sufficient to change the orientation when I run it from Console in the desktop session:
Another route I didn't try going down yet is that folding and unfolding are also reflected in the keyboard driver (!?), which saw some systemd discussion. It looks like the systemd people added and then removed some keymappings, so that may not be the way.
I also found this GitHub repo that appears to have a systemd service running a python2 script that reads the accelerometer to determine when to rotate the screen. That's probably even more correct than just flipping one way based on the fold toggle state. It will need some adjustments for use on NixOS 22.11 and Wayland, though.