2023-03-19 02:16:49 +05:30
|
|
|
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
|
|
|
|
|
2023-05-26 18:58:30 +01:00
|
|
|
| Selector | Description |
|
|
|
|
|---------------------------------|--------------------------------|
|
|
|
|
| `.upower` | Upower widget container. |
|
|
|
|
| `.upower .button` | Upower widget button. |
|
|
|
|
| `.upower .button .contents` | Upower widget button contents. |
|
|
|
|
| `.upower .button .icon` | Upower widget battery icon. |
|
|
|
|
| `.upower .button .label` | Upower widget button label. |
|
|
|
|
| `.popup-upower` | Upower popup box. |
|
|
|
|
| `.popup-upower .upower-details` | Label inside the popup. |
|
|
|
|
|
|
|
|
For more information on styling, please see the [styling guide](styling-guide).
|