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

+16
View File
@@ -270,6 +270,8 @@ fn request_val(r : @wasm.HostRequest) -> @wt.Val {
"game-library",
Some(Record([("action", S32(action)), ("game", Str(game)), ("mode", Str(mode))])),
)
SetOskVisible(b) => Variant("set-osk-visible", Some(Bool(b)))
SetRotation(n) => Variant("set-rotation", Some(S32(n)))
}
}
@@ -488,6 +490,20 @@ fn plasmoid_funcs() -> Array[(String, (Array[@wt.Val]) -> Array[@wt.Val])] {
none
},
),
(
"publish-osk",
a => {
@wasm.publish_osk(a[0].to_bool())
none
},
),
(
"publish-rotation",
a => {
@wasm.publish_rotation(a[0].to_uint().reinterpret_as_int())
none
},
),
(
"publish-system",
a => {