Kiosk mode: --kiosk CMD runs one fullscreen app, locked down, restarted when it exits
CI / test (push) Successful in 4m10s
CI / test (push) Successful in 4m10s
No panel, no compositor shortcuts or desktop menus, the focused window fullscreen (dialogs float), CMD restarted with backoff. Ctrl+Alt+Shift+Escape or chandra-ctl kiosk lock|unlock|status for admin work. --app-id sets the X11 WM_CLASS / Wayland app id of Chandra's own window. scripts/gamerig-kiosk.sh runs Chandra as a gamerig rig's library window on its NVIDIA Xorg. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hgvjzw8hHirxRsXSsE
This commit is contained in:
11 files changed
+635
-16
No files matched your search
@@ -258,6 +258,8 @@ pub(all) struct DesktopShell {
|
||||
mut booted : Bool
|
||||
/// Read and write panel.edn (the compositor binary turns this on; tests leave it off).
|
||||
mut persist : Bool
|
||||
/// Kiosk mode (locked): no panel, no panel menus; the desktop module and popups stay.
|
||||
mut hide_panel : Bool
|
||||
/// Last floating position and size (x, y, w, h) of each app's window, by app id (persisted).
|
||||
win_geoms : Map[String, (Int, Int, Int, Int)]
|
||||
mut tokens : @theme.Tokens
|
||||
@@ -444,6 +446,7 @@ pub fn DesktopShell::new(display : String) -> DesktopShell {
|
||||
catalog_named: false,
|
||||
booted: false,
|
||||
persist: false,
|
||||
hide_panel: false,
|
||||
win_geoms: {},
|
||||
tokens: conv_theme(@scene.ThemeTokens::moon_night()),
|
||||
screen_w: 0,
|
||||
@@ -1086,7 +1089,12 @@ pub fn DesktopShell::render(
|
||||
let panel_ops : Array[@scene.DrawOp] = []
|
||||
self.comps.clear()
|
||||
self.panel_rect = { x: 0, y: 0, w: 0, h: 0 }
|
||||
match @panel.layout(w, h, theme.panel_height, 4, tokens.spacing.reinterpret_as_int(), self.panel_slots()) {
|
||||
let layout = if self.hide_panel {
|
||||
Err("kiosk: no panel")
|
||||
} else {
|
||||
@panel.layout(w, h, theme.panel_height, 4, tokens.spacing.reinterpret_as_int(), self.panel_slots())
|
||||
}
|
||||
match layout {
|
||||
Err(_) => ()
|
||||
Ok(pl) => {
|
||||
self.panel_rect = { x: pl.x, y: pl.y, w: pl.w, h: pl.h }
|
||||
|
||||
Reference in new issue
Block a user