Add display rotation: Rot pill, chandra-ctl rotate, sensor auto-rotate
CI / test (push) Failing after 51s

- Rotate the display 0/90/180/270 degrees in the KMS host, with scanout and libinput touch/pointer coordinates transformed to match
- Add a touch "Rot" pill beside "KB": tap turns 90 CW, long-press or right-click flips 180
- Add `chandra-ctl rotate [cw|ccw|flip|0|90|180|270|status]`; CHANDRA_ROTATE sets the initial orientation
- Add session/chandra-auto-rotate, which follows iio-sensor-proxy orientation (disable with CHANDRA_AUTO_ROTATE=0)
- Advertise window_menu, maximize, fullscreen and minimize via xdg_toplevel.wm_capabilities (xdg_wm_base v5+)
- Add docs/handset.md covering handset touch, scaling, OSK and rotation
This commit is contained in:
nandi committed 2026-11-28 00:39:24 -08:00
1 parent 905dab8725
commit 2e00009c79
21 files changed
+669 -63

No files matched your search

+3
View File
@@ -28,6 +28,7 @@ Installs:
starts it (docs/auth-dialog.md)
/usr/local/bin/chandra-ctl talk to the running session: `chandra-ctl reload` loads
the panel modules again (docs/reloading.md)
/usr/local/bin/chandra-auto-rotate DRM session accelerometer watcher (iio-sensor-proxy)
/usr/local/bin/chandra-kde-colors Dark mode for KDE/Qt apps: copies a color scheme into
kdeglobals (docs/dark-mode.md)
/usr/local/share/color-schemes/Chandra{Dark,Light}.colors KDE color schemes, used when Breeze's
@@ -64,6 +65,7 @@ targets = [
"/usr/local/bin/chandra-root",
"/usr/local/lib/chandra/chandra-polkit-agent",
"/usr/local/bin/chandra-ctl",
"/usr/local/bin/chandra-auto-rotate",
"/usr/local/bin/chandra-kde-colors",
"/usr/local/share/color-schemes/ChandraDark.colors",
"/usr/local/share/color-schemes/ChandraLight.colors",
@@ -173,6 +175,7 @@ if linked:
else:
put(auth_agent, auth_agent_dst, 0o755)
install(os.path.join(root, "session/chandra-ctl"), "/usr/local/bin/chandra-ctl")
install(os.path.join(root, "session/chandra-auto-rotate"), "/usr/local/bin/chandra-auto-rotate")
install(os.path.join(root, "session/chandra-kde-colors"), "/usr/local/bin/chandra-kde-colors")
for f in ("ChandraDark.colors", "ChandraLight.colors"):
put(os.path.join(root, "session/color-schemes", f), "/usr/local/share/color-schemes/" + f, 0o644)