- 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:
1 parent
7501fc3ad9
commit
c790f96e58
131 files changed
+4693
-274
No files matched your search
@@ -0,0 +1,44 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "chandra/desktop/components/session-settings/gen/interface/chandra/desktop/plasmoid"
|
||||
|
||||
import {
|
||||
"chandra/desktop/interface/chandra/desktop/types",
|
||||
}
|
||||
|
||||
// Values
|
||||
pub fn info() -> PlasmoidInfo
|
||||
|
||||
pub fn on_event(Surface, @types.InputEvent) -> Bool
|
||||
|
||||
pub fn popup() -> PopupSurface?
|
||||
|
||||
pub fn render(@types.Size) -> Array[@types.DrawOp]
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
pub(all) struct PlasmoidInfo {
|
||||
id : String
|
||||
name : String
|
||||
preferred : @types.Size
|
||||
min_width : UInt32
|
||||
stretch : Bool
|
||||
}
|
||||
|
||||
pub(all) struct PopupSurface {
|
||||
size : @types.Size
|
||||
ops : Array[@types.DrawOp]
|
||||
}
|
||||
|
||||
type Row
|
||||
|
||||
pub(all) enum Surface {
|
||||
WIDGET
|
||||
POPUP
|
||||
}
|
||||
pub fn Surface::from(Int32) -> Self
|
||||
pub fn Surface::ordinal(Self) -> Int32
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
@@ -174,7 +174,7 @@ let categories : Array[String] = ["Apps and windows", "System", "Clocks", "Other
|
||||
fn category_of(id : String) -> String {
|
||||
match id {
|
||||
"launcher" | "dock" | "layout" => "Apps and windows"
|
||||
"session-settings" | "network" | "battery" | "screenshot" => "System"
|
||||
"session-settings" | "network" | "battery" | "screenshot" | "rotate" | "osk" => "System"
|
||||
"clock-digital" | "clock-binary" | "moon-disc" => "Clocks"
|
||||
_ => "Other"
|
||||
}
|
||||
@@ -190,6 +190,8 @@ fn description_of(id : String) -> String {
|
||||
"network" => "Wi-Fi and wired network"
|
||||
"battery" => "Charge and time left"
|
||||
"screenshot" => "Capture or record the screen"
|
||||
"rotate" => "Rotate the display 90° clockwise"
|
||||
"osk" => "Show or hide the on-screen keyboard"
|
||||
"clock-digital" => "The time, 12 or 24-hour"
|
||||
"clock-binary" => "The time in binary"
|
||||
"moon-disc" => "Tonight's moon phase"
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "chandra/desktop/components/session-settings/gen"
|
||||
|
||||
// Values
|
||||
pub fn mbt_ffi_cabi_realloc(Int32, Int32, Int32, Int32) -> Int32
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
Reference in new issue
Block a user