mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
BREAKING CHANGE: To allow for the `name` property, any widgets that were previously targeted by name should be targeted by class instead. This affects **all modules and all popups**, as well as several widgets inside modules. **This will break a lot of rules in your stylesheet**. To attempt to mitigate the damage, a migration script can be found [here](https://raw.githubusercontent.com/JakeStanger/ironbar/master/scripts/migrate-styles.sh) that should get you most of the way. Resolves #75.
72 lines
No EOL
1.3 KiB
Markdown
72 lines
No EOL
1.3 KiB
Markdown
Displays custom text, with the ability to embed [scripts](https://github.com/JakeStanger/ironbar/wiki/scripts#embedding).
|
|
|
|
## Configuration
|
|
|
|
> Type: `label`
|
|
|
|
| Name | Type | Default | Description |
|
|
|---------|----------|---------|-----------------------------------------|
|
|
| `label` | `string` | `null` | Text, optionally with embedded scripts. |
|
|
|
|
<details>
|
|
<summary>JSON</summary>
|
|
|
|
```json
|
|
{
|
|
"end": [
|
|
{
|
|
"type": "label",
|
|
"label": "random num: {{500:echo $RANDOM}}"
|
|
}
|
|
]
|
|
}
|
|
|
|
```
|
|
|
|
</details>
|
|
|
|
<details>
|
|
<summary>TOML</summary>
|
|
|
|
```toml
|
|
[[end]]
|
|
type = "label"
|
|
label = "random num: {{500:echo $RANDOM}}"
|
|
```
|
|
|
|
</details>
|
|
|
|
<details>
|
|
<summary>YAML</summary>
|
|
|
|
```yaml
|
|
end:
|
|
- type: "label"
|
|
label: "random num: {{500:echo $RANDOM}}"
|
|
```
|
|
|
|
</details>
|
|
|
|
<details>
|
|
<summary>Corn</summary>
|
|
|
|
```corn
|
|
{
|
|
end = [
|
|
{
|
|
type = "label"
|
|
label = "random num: {{500:echo $RANDOM}}"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
</details>
|
|
|
|
## Styling
|
|
|
|
| Selector | Description |
|
|
|----------|------------------------------------------------------------------------------------|
|
|
| `.label` | Label widget |
|
|
|
|
For more information on styling, please see the [styling guide](styling-guide). |