Skip to content
Erik Reider edited this page Mar 22, 2022 · 5 revisions

Config

Addressed by upower

option typeof default description
icon-size integer 20 Defines the size of the icons.
format string {percentage} The text format.
format-alt string {percentage} {time} The text format when toggled.
hide-if-empty bool true Defines visibility of the module if no devices can be found.
tooltip bool true Option to disable tooltip on hover.
tooltip-spacing integer 4 Defines the spacing between the tooltip device name and device battery status.
tooltip-padding integer 4 Defines the spacing between the tooltip window edge and the tooltip content.

Format replacements:

string replacement
{percentage} The battery capacity in percentage.
{time} An estimated time either until empty or until fully charged depending on the charging state.

Example:

"upower": {
     "icon-size": 20,
     "hide-if-empty": true,
     "tooltip": true,
     "tooltip-spacing": 20
}

Style

  • #upower
  • #upower.charging
  • #upower.discharging
  • #upower.unknown-status
Clone this wiki locally