fix(battery): Register health replacement for main format
This commit is contained in:
parent
a04016e0b6
commit
efa7dc7ba4
|
@ -714,7 +714,8 @@ auto waybar::modules::Battery::update() -> void {
|
||||||
label_.set_markup(
|
label_.set_markup(
|
||||||
fmt::format(fmt::runtime(format), fmt::arg("capacity", capacity), fmt::arg("power", power),
|
fmt::format(fmt::runtime(format), fmt::arg("capacity", capacity), fmt::arg("power", power),
|
||||||
fmt::arg("icon", getIcon(capacity, icons)),
|
fmt::arg("icon", getIcon(capacity, icons)),
|
||||||
fmt::arg("time", time_remaining_formatted), fmt::arg("cycles", cycles)));
|
fmt::arg("time", time_remaining_formatted), fmt::arg("cycles", cycles),
|
||||||
|
fmt::arg("health", fmt::format("{:.3}", health))));
|
||||||
}
|
}
|
||||||
// Call parent update
|
// Call parent update
|
||||||
ALabel::update();
|
ALabel::update();
|
||||||
|
|
Loading…
Reference in New Issue