Add backlight control to the shell and regenerate WIT bindings
CI / test (push) Canceled after 0s

- Add compositor/shell/backlight.mbt for backlight control in the shell
- Update wit/capabilities.wit and wit/host/plasmoids.wit, then regenerate the component and interface ffi.mbt bindings (mostly export reordering)
- Add world/launcher-widget/README.md
This commit is contained in:
nandi committed 2026-11-28 02:16:07 -08:00
1 parent 2e00009c79
commit 74235cb0ca
84 files changed
+1525 -864

No files matched your search

+4
View File
@@ -259,6 +259,10 @@ interface power {
/// Minutes without input before the computer suspends; 0: never.
suspend-minutes: func() -> u32;
set-suspend-minutes: func(minutes: u32);
/// Current display backlight brightness in 0..100, or -1 if no backlight exists.
brightness: func() -> s32;
/// Set display backlight brightness percentage (clamped to 5..100).
set-brightness: func(percent: u32);
/// Suspend, power off or restart now.
suspend: func();
power-off: func();
+4
View File
@@ -85,6 +85,8 @@ interface plasmoids {
publish-session-settings: func(on: u32);
/// The power timeouts, in minutes (0: never).
publish-power: func(screen-off: u32, suspend: u32);
/// Current display backlight brightness in 0..100, or -1 if no backlight exists.
publish-brightness: func(percent: s32);
/// The battery: percent (-1: none), state (the battery capability's charge-state, as its index)
/// and estimated seconds left (0: unknown).
publish-battery: func(percent: s32, state: u32, secs-left: u32);
@@ -177,6 +179,8 @@ interface plasmoids {
face-unlock(s32),
/// The game-library capability: launch, stop, focus or refresh.
game-library(game-request),
/// Power: display backlight brightness percentage (5..100).
set-brightness(s32),
}
/// The next pending request, oldest first.
next-request: func() -> option<request>;