Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/plugins/bar/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions docs/plugins/bar/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down