diff --git a/docs/plugins/bar/design.md b/docs/plugins/bar/design.md index 22ac584..c68da1b 100644 --- a/docs/plugins/bar/design.md +++ b/docs/plugins/bar/design.md @@ -41,9 +41,11 @@ The plugin mounts `top` or `bottom` through `bitty.ui.mount` under `ui.rich`. It composes a `Row` of `Text`, placing workspaces in the left group, the clock centered across the full band, and provider-backed `network`, `cpu`, `memory`, and `battery` modules at the right inset. Unavailable or ungranted provider -modules are omitted individually. A lone workspace is hidden unless configured -otherwise or a scratchpad is occupied, and a plan that resolves to nothing -falls back to the shipped default plan. Inactive workspace labels request focus +modules are omitted individually. A lone workspace keeps the bar visible by +default (`show_single = true`); setting it to `false` restores the historical +auto-hide, where an occupied scratchpad still keeps the bar visible, and +`show = false` hides it outright. A plan that resolves to nothing falls back to +the shipped default plan. Inactive workspace labels request focus through a registered command and `workspace.control`; the `label` setting selects index, name, or both. Workspace labels render as padded, filled capsules rather than bracketed text; the exact marks, theme tokens, and square-corner diff --git a/docs/plugins/bar/schemas.md b/docs/plugins/bar/schemas.md index c82b3fd..9c7306a 100644 --- a/docs/plugins/bar/schemas.md +++ b/docs/plugins/bar/schemas.md @@ -60,17 +60,17 @@ invented `[plugins]` table in `bitty.toml`. The legacy `bitty-terminal.bar.toml` file remains a compatibility fallback only when no selected Lua file exists. -| Key | Kind | Shipped default | Implemented behavior | -| ---------------- | -------------- | ----------------------------------------- | ------------------------------------------------------------------------ | -| `show` | `bool` | `true` | Enable presentation | -| `edge` | `string` | `"bottom"` | `"top"` or `"bottom"` semantic slot; other strings use local default | -| `show_single` | `bool` | `false` | Show a lone workspace; occupied scratchpad also keeps the bar visible | -| `name_max_chars` | `int` | `32` | Local validation permits 1 through `NAME_MAX_CHARS` (32) | -| `label` | `string` | `"index"` | Capsule label mode: `"index"`, `"name"`, or `"both"` | -| `icons` | `string` | `"ascii"` | Module icon map: `"ascii"`, `"pua"`, or `"nerd"`; unknown paints `ascii` | -| `modules_left` | `string-array` | `["workspaces"]` | First ordered module group | -| `modules_center` | `string-array` | `["clock"]` | Center group, centered across the full band | -| `modules_right` | `string-array` | `["network", "cpu", "memory", "battery"]` | Right group, aligned to the right inset edge | +| Key | Kind | Shipped default | Implemented behavior | +| ---------------- | -------------- | ----------------------------------------- | ------------------------------------------------------------------------------- | +| `show` | `bool` | `true` | Enable presentation | +| `edge` | `string` | `"bottom"` | `"top"` or `"bottom"` semantic slot; other strings use local default | +| `show_single` | `bool` | `true` | Show a lone workspace (default); occupied scratchpad also keeps the bar visible | +| `name_max_chars` | `int` | `32` | Local validation permits 1 through `NAME_MAX_CHARS` (32) | +| `label` | `string` | `"index"` | Capsule label mode: `"index"`, `"name"`, or `"both"` | +| `icons` | `string` | `"ascii"` | Module icon map: `"ascii"`, `"pua"`, or `"nerd"`; unknown paints `ascii` | +| `modules_left` | `string-array` | `["workspaces"]` | First ordered module group | +| `modules_center` | `string-array` | `["clock"]` | Center group, centered across the full band | +| `modules_right` | `string-array` | `["network", "cpu", "memory", "battery"]` | Right group, aligned to the right inset edge | The shipped fresh-install plan places workspace capsules on the left, the clock in the center, and provider-backed `network`, `cpu`, `memory`, and `battery`