waybar-upower(5)
π waybar-upower β the manual, but make it cute
okay bestie, welcome to waybar-upower(5), aka the File Formats Manual entry for waybar's upower module. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
waybar β upower module. that's it, that's the name, she's simple and she serves.
πΈ DESCRIPTION πΈ
the upower module shows your main battery capacity right there in your bar, and then it puts all your other upower-compatible devices in the tooltip. so like, yes ma'am, your laptop battery is the main character, and everything else is in the group chat (tooltip).
π CONFIGURATION π
every option, every default, no skips. let's go π
native-path- typeof:
string - default: (empty)
- the battery you wanna monitor, picked by its native-path. peep the deets here:
https://upower.freedesktop.org/docs/UpDevice.html#UpDevice--native-path - you can grab it with
upower --dump
- typeof:
model- typeof:
string - default: (empty)
- the battery you wanna monitor, but picked by model instead. heads up tho: this option is ignored if
native-pathis given, so pick one bestie, don't do both. - also obtainable with
upower --dump
- typeof:
icon-size- typeof:
integer - default:
20 - how big the icons are. that's the whole job. π¦
- typeof:
format- typeof:
string - default:
{percentage} - the text format. yep.
- typeof:
format-alt- typeof:
string - default:
{percentage} {time} - the text format for when you've toggled it. alternate era β¨
- typeof:
hide-if-empty- typeof:
bool - default:
true - controls whether the module is visible when no devices can be found. if nothing's there, she's gone, poof, no vibes.
- typeof:
tooltip- typeof:
bool - default:
true - lets you turn the hover tooltip off. some of y'all are anti-hover, i see you.
- typeof:
tooltip-spacing- typeof:
integer - default:
4 - the spacing between the tooltip's device name and the device battery status. personal space matters π«Ά
- typeof:
tooltip-padding- typeof:
integer - default:
4 - the spacing between the tooltip window edge and the tooltip content. cozy margins, we love.
- typeof:
on-click- typeof:
string - a command to execute when you click the module. yes, you can make it do a thing.
- typeof:
show-icon- typeof:
bool - default:
true - lets you turn the battery icon off. iconless, minimal, mysterious.
- typeof:
menu- typeof:
string - the action that popups the menu.
- typeof:
menu-file- typeof:
string - where the menu descriptor file lives. it needs to have an element of type
GtkMenuwith idmenuβ noGtkMenu, no menu, fr fr.
- typeof:
menu-actions- typeof:
array - the actions that correspond to the buttons of the menu.
- typeof:
π§ FORMAT REPLACEMENTS π§
these are the little blorbos you can drop into your format strings:
{percentage}β the battery capacity, in percentage.{time}β an estimated time, either until it's empty or until it's fully charged, depending on what the charging state is doing. she's flexible like that.
π₯ EXAMPLES π₯
copy-paste these into your config, no cap:
"upower": {
"icon-size": 20,
"hide-if-empty": true,
"tooltip": true,
"tooltip-spacing": 20
}
"upower": {
"native-path": "/org/bluez/hci0/dev_D4_AE_41_38_D0_EF",
"icon-size": 20,
"hide-if-empty": true,
"tooltip": true,
"tooltip-spacing": 20
}
"upower": {
"native-path": "battery_sony_controller_battery_d0o27o88o32ofcoee",
"icon-size": 20,
"hide-if-empty": true,
"tooltip": true,
"tooltip-spacing": 20
}
"upower": {
"show-icon": false,
"hide-if-empty": true,
"tooltip": true,
"tooltip-spacing": 20
}
π STYLE π
these are the CSS selectors you can style, and every single one is here, periodt:
#upower#upower.charging#upower.discharging#upower.full#upower.empty#upower.unknown-status
and that's the whole page bestie π«Ά go forth, monitor your battery, and remember: ifnative-pathis set,modelis getting ignored. iykyk π
this has been waybar-upower(5), dated 2026-02-08, from the File Formats Manual. mwah, bye bestie ππβ¨
π¦ where this page comes from
- ubuntu resolute: waybar 0.15.0-1 Β· MIT
- ubuntu stonking: waybar 0.15.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms