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

+27 -2
View File
@@ -7,11 +7,29 @@ import {
}
// Values
pub fn action_at(Array[@types.AppEntry], State, @types.Point) -> Int32
pub let action_logout : Int32
pub let action_power_off : Int32
pub let action_reload : Int32
pub let action_restart : Int32
pub let action_suspend : Int32
pub fn categories(Array[@types.AppEntry]) -> Array[String]
pub fn close(State) -> Unit
pub fn filter(Array[@types.AppEntry], String) -> Array[@types.AppEntry]
pub fn handle_event(Array[@types.AppEntry], State, Target, @types.InputEvent, (String) -> Result[Unit, String]) -> Bool
pub fn handle_event(Array[@types.AppEntry], State, Target, @types.InputEvent, (String) -> Result[Unit, String], session? : (Int32) -> Unit) -> Bool
pub fn listed(Array[@types.AppEntry], State) -> Array[@types.AppEntry]
pub fn needs_confirm(Int32) -> Bool
pub fn popup_size(Array[@types.AppEntry], State) -> @types.Size
@@ -19,10 +37,12 @@ pub let popup_w : Int32
pub fn render_button(@types.Size, @theme.Tokens, State) -> Array[@types.DrawOp]
pub fn render_popup(Array[@types.AppEntry], @theme.Tokens, State, icon? : (String) -> UInt) -> Array[@types.DrawOp]
pub fn render_popup(Array[@types.AppEntry], @theme.Tokens, State, icon? : (String) -> UInt32) -> Array[@types.DrawOp]
pub fn row_at(Array[@types.AppEntry], State, @types.Point) -> Int32
pub let session_actions : Array[String]
pub fn shown_rows(Array[@types.AppEntry], State) -> Array[@types.AppEntry]
// Errors
@@ -33,6 +53,11 @@ pub struct State {
mut query : String
mut hover : Int32
mut error : String
mut hover_action : Int32
mut armed : Int32
mut category : String
mut scroll : Int32
mut hover_category : Int32
}
pub fn State::new() -> Self