mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: add tooltip to battery and memory
This commit is contained in:
@ -44,6 +44,7 @@ auto waybar::modules::Battery::update() -> void
|
||||
}
|
||||
auto format = _config["format"] ? _config["format"].asString() : "{}%";
|
||||
_label.set_text(fmt::format(format, total / _batteries.size()));
|
||||
_label.set_tooltip_text(charging ? "Charging" : "Discharging");
|
||||
} catch (std::exception &e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user