2022-03-19 17:25:43 +01:00
|
|
|
waybar-upower(5)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
waybar - upower module
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
The *upower* module displays the main battery capacity with all other upower
|
|
|
|
compatible devices in the tooltip.
|
|
|
|
|
|
|
|
# CONFIGURATION
|
|
|
|
|
|
|
|
*icon-size*: ++
|
|
|
|
typeof: integer ++
|
|
|
|
default: 20 ++
|
|
|
|
Defines the size of the icons.
|
|
|
|
|
2022-03-19 21:15:48 +01:00
|
|
|
*format*: ++
|
|
|
|
typeof: string ++
|
|
|
|
default: {percentage} ++
|
|
|
|
The text format.
|
|
|
|
|
|
|
|
*format-alt*: ++
|
|
|
|
typeof: string ++
|
|
|
|
default: {percentage} {time} ++
|
|
|
|
The text format when toggled.
|
|
|
|
|
2022-03-19 17:25:43 +01:00
|
|
|
*hide-if-empty*: ++
|
|
|
|
typeof: bool ++
|
|
|
|
default: true ++
|
|
|
|
Defines visibility of the module if no devices can be found.
|
|
|
|
|
|
|
|
*tooltip*: ++
|
|
|
|
typeof: bool ++
|
|
|
|
defualt: true ++
|
|
|
|
Option to disable tooltip on hover.
|
|
|
|
|
|
|
|
*tooltip-spacing*: ++
|
|
|
|
typeof: integer ++
|
|
|
|
default: 4 ++
|
|
|
|
Defines the spacing between the tooltip device name and device battery ++
|
|
|
|
status.
|
|
|
|
|
2022-03-19 21:15:48 +01:00
|
|
|
# FORMAT REPLACEMENTS
|
|
|
|
|
|
|
|
*{percentage}*: The battery capacity in percentage
|
|
|
|
|
|
|
|
*{time}*: An estimated time either until empty or until fully charged ++
|
|
|
|
depending on the charging state.
|
|
|
|
|
2022-03-19 17:25:43 +01:00
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
```
|
|
|
|
"upower": {
|
|
|
|
"icon-size": 20,
|
|
|
|
"hide-if-empty": true,
|
|
|
|
"tooltip": true,
|
|
|
|
"tooltip-spacing": 20
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
2022-03-19 19:22:00 +01:00
|
|
|
|
|
|
|
# STYLE
|
|
|
|
|
|
|
|
- *#upower*
|
|
|
|
- *#upower.charging*
|
|
|
|
- *#upower.discharging*
|
|
|
|
- *#upower.unknown-status*
|