Skip to content

Commit 87423ff

Browse files
committed
docs(v5): add info about widget grouping
1 parent c382b8a commit 87423ff

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/content/docs/v5/bar/index.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Set under `[bar.<name>]` or `[bar.<name>.monitor.*]`:
116116
|---------|------|---------|-------------|
117117
| `capsule` | bool | `false` | `true` gives every widget a capsule unless `[widget.*]` sets `capsule = false`. |
118118
| `color` | string | *(unset)* | Default icon + label color role or hex color for every widget on this bar. |
119+
| `capsule_groups` | array of string | `[]` | Managed capsule group names for nearby widgets on this bar. |
119120
| `capsule_fill` | string | `surface_variant` | Default capsule background color role or hex color. |
120121
| `capsule_foreground` | string | *(unset)* | Default icon + label color role or hex color for capped widgets. |
121122
| `capsule_padding` | number | `6` | Inner padding in logical pixels before `scale` is applied (clamped 0–48). |
@@ -129,6 +130,7 @@ Set under `[widget.<name>]`:
129130
| Setting | Type | Default | Description |
130131
|---------|------|---------|-------------|
131132
| `capsule` | bool | *(from bar)* | Omit to inherit bar flag; `false` disables; `true` forces on. |
133+
| `capsule_group` | string | *(unset)* | Select one of the bar's managed capsule group names. Nearby widgets in the same section with the same non-empty value and matching capsule styling share one capsule. |
132134
| `capsule_fill` | string | *(from bar)* | Capsule background color role or hex color. |
133135
| `capsule_foreground` | string | *(from bar)* | Icon + label color role or hex color when capsule is visible. `color` takes priority over this. |
134136
| `capsule_padding` | number | *(from bar)* | Per-widget inner padding (0–48). |
@@ -143,6 +145,7 @@ The capsule is hidden automatically when a widget reports no visible ink (empty
143145
```toml
144146
[bar.main]
145147
capsule = true
148+
capsule_groups = ["status", "media"]
146149
capsule_fill = "surface_variant"
147150
capsule_opacity = 0.9
148151
capsule_border = "outline"
@@ -158,6 +161,12 @@ capsule_padding = 10
158161
capsule_fill = "secondary"
159162
capsule_border = "" # no border on this widget
160163

164+
[widget.network]
165+
capsule_group = "status"
166+
167+
[widget.bluetooth]
168+
capsule_group = "status"
169+
161170
[widget.spacer]
162171
type = "spacer"
163172
capsule = false

0 commit comments

Comments
 (0)