Desktop modules: a wasm module can fill the desktop, with Icon Desktop and Live Starfield
CI / test (push) Failing after 30s
CI / test (push) Failing after 30s
A module that exports chandra:desktop/desktop-module (wit/desktop.wit) owns the desktop behind the windows instead of a box in the panel: same sandbox, draw ops and capabilities, drawn at the output's full size and re-rendered on resize. It gets pointer and scroll events only on the empty desktop (windows, panel, popups and menus always win; a drag stays with the module until release), keys only while the desktop has focus, and can draw over the wallpaper or replace it. Its tick() asks for animation frames only while something moves; the main loop sleeps until the next one (wake_timeout), and frames pause while a window covers the desktop, so an idle desktop module costs nothing. Settings > Desktop gets "On the desktop": Wallpaper only, Clock card (default) or any installed desktop module, saved in state.edn as :desktop, loaded at login and reloaded by chandra-ctl reload. Right-click the empty desktop for Module settings and System settings. Hidden settings (empty label) are persisted by the shell, which is how Icon Desktop keeps icon positions. Samples: Icon Desktop (click to launch, drag to arrange, keyboard navigation, count and size settings) and Live Starfield (pointer steers, click or Space warps, wheel sets speed). Served by all hosts: compositor/wasm (native + MoonBit wasmhost) and Rust host-wasm. Docs in docs/desktop-modules.md; tests in compositor/host/desktop_test.mbt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hgf1SwPMHVfLUbJKsB
This commit is contained in:
79 files changed
+4591
-113
No files matched your search
@@ -6,6 +6,7 @@ what it loaded at startup. What can be swapped without logging out:
|
||||
| Part | Reload without logout? | How |
|
||||
|---|---|---|
|
||||
| Panel modules (`/usr/local/share/chandra/modules/*.wasm`) | yes | Applications → **Reload**, `just reload` / `chandra-ctl reload`, `kill -USR1`, or Settings → Panel (remove, add again) |
|
||||
| The desktop module ([desktop-modules.md](desktop-modules.md)) | yes | the same; `chandra-ctl reload desktop` for only it |
|
||||
| `compositor.wasm` (shell, WM, portal backend) | no | restart the session |
|
||||
| `chandra-host` (`wasmhost`) | no | restart the session |
|
||||
| `config/`, themes, assets | not checked | restart the session to be sure |
|
||||
|
||||
Reference in new issue
Block a user