Skip to content

Upower

Displays system power information such as the battery percentage, and estimated time to empty.

TODO: ADD SCREENSHOT

Configuration

Type: upower

NameTypeDefaultDescription
formatstring{percentage}%Format string to use for the widget button label.
icon_sizeinteger24Size to render icon at.
JSON
{
"end": [
{
"type": "upower",
"format": "{percentage}%"
}
]
}
TOML
[[end]]
type = "upower"
format = "{percentage}%"
YAML
end:
- type: "upower"
format: "{percentage}%"
Corn
{
end = [
{
type = "upower"
format = "{percentage}%"
}
]
}

Formatting Tokens

The following tokens can be used in the format config option, and will be replaced with values from the current battery state:

TokenDescription
{percentage}The battery charge percentage.
{state}The current battery (dis)charging state.
{time_remaining}The ETA to battery empty or full.

Styling

SelectorDescription
.upowerUpower widget button.
.upower .contentsUpower widget button contents.
.upower .iconUpower widget battery icon.
.upower .labelUpower widget button label.
.popup-upowerUpower popup box.
.popup-upower .upower-detailsLabel inside the popup.

For more information on styling, please see the styling guide.