Lock: add session lock from power button and chandra-ctl lock
CI / test (push) Waiting to run

- Lock the session from the power button or `chandra-ctl lock`
- Unlock with a face or the password; the password always works
- Add compositor lock module with tests, and a polkit unlock policy (org.chandra.unlock)
- Document the lock flow in docs/lock.md and link it from the README
- Add generated interface bindings for the compositor and widget components
This commit is contained in:
nandi committed 2026-11-29 03:24:46 -08:00
1 parent 7501fc3ad9
commit c790f96e58
131 files changed
+4693 -274

No files matched your search

+19
View File
@@ -431,3 +431,22 @@ interface game-library {
/// Poll the daemon again now.
refresh: func();
}
/// Built-in on-screen keyboard (OSK). The compositor draws the keyboard above the panel and routes
/// keystrokes to focused Wayland clients, panel popups and dialogs; a module with this capability
/// reads whether the keyboard is showing and opens or hides it.
interface osk {
/// Whether the on-screen keyboard is currently visible.
is-visible: func() -> bool;
/// Show (true) or hide (false) the on-screen keyboard.
set-visible: func(visible: bool);
}
/// Display orientation (0°, 90° CW, 180°, 270° CW). The host rotates scanout and input
/// coordinates; a module with this capability reads the current orientation and rotates it.
interface rotation {
/// Current orientation: 0 = 0°, 1 = 90° CW, 2 = 180°, 3 = 270° CW.
current: func() -> u32;
/// Set the orientation (0..3, wrapped modulo 4).
set-rotation: func(rot: u32);
}