Lock: add session lock from power button and chandra-ctl lock
CI / test (push) Failing after 52s

- 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

+10 -1
View File
@@ -27,8 +27,17 @@ pub fn ChandraCompositor::set_manual_screen_off(
off : Bool,
) -> Unit {
self.manual_screen_off = off
if !off {
if off {
if self.locked {
self.cancel_unlock()
} else if self.lock_on_blank {
self.lock_now()
}
} else {
self.note_activity(@sys.monotonic_ms())
if self.locked {
self.request_unlock()
}
}
}