1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 10:41:03 +02:00

feat(upower): add new formatting properties

This commit is contained in:
Disr0 2024-02-10 21:07:48 +07:00 committed by Jake Stanger
parent d2adecb935
commit 76a68165f0
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
2 changed files with 48 additions and 16 deletions

View file

@ -69,6 +69,17 @@ end:
</details>
### Formatting Tokens
The following tokens can be used in the `format` config option,
and will be replaced with values from the current battery state:
| Token | Description |
|----------------|------------------------------------------|
| `{percentage}` | The battery charge percentage. |
| `{state}` | The current battery (dis)charging state. |
| `{remaining}` | The ETA to battery empty or full. |
## Styling
| Selector | Description |