mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-20 11:54:23 +02:00
81 lines
1.6 KiB
Markdown
81 lines
1.6 KiB
Markdown
![]() |
Displays system power information such as the battery percentage, and estimated time to empty.
|
||
|
|
||
|
`TODO: ADD SCREENSHOT`
|
||
|
|
||
|
[//]: # ()
|
||
|
|
||
|
|
||
|
## Configuration
|
||
|
|
||
|
> Type: `upower`
|
||
|
|
||
|
| Name | Type | Default | Description |
|
||
|
|----------|----------|-----------------|---------------------------------------------------|
|
||
|
| `format` | `string` | `{percentage}%` | Format string to use for the widget button label. |
|
||
|
|
||
|
<details>
|
||
|
<summary>JSON</summary>
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"end": [
|
||
|
{
|
||
|
"type": "upower",
|
||
|
"format": "{percentage}%"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
<details>
|
||
|
<summary>TOML</summary>
|
||
|
|
||
|
```toml
|
||
|
[[end]]
|
||
|
type = "upower"
|
||
|
format = "{percentage}%"
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
<details>
|
||
|
<summary>YAML</summary>
|
||
|
|
||
|
```yaml
|
||
|
end:
|
||
|
- type: "upower"
|
||
|
format: "{percentage}%"
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
<details>
|
||
|
<summary>Corn</summary>
|
||
|
|
||
|
```corn
|
||
|
{
|
||
|
end = [
|
||
|
{
|
||
|
type = "upower"
|
||
|
format = "{percentage}%"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
</details>
|
||
|
|
||
|
## Styling
|
||
|
|
||
|
| Selector | Description |
|
||
|
|---------------------------------|-----------------------------|
|
||
|
| `#upower` | Upower widget container. |
|
||
|
| `#upower #icon` | Upower widget battery icon. |
|
||
|
| `#upower #button` | Upower widget button. |
|
||
|
| `#upower #button #label` | Upower widget button label. |
|
||
|
| `#popup-upower` | Clock popup box. |
|
||
|
| `#popup-upower #upower-details` | Label inside the popup. |
|