feat: add tooltip to battery and memory

This commit is contained in:
Alexis
2018-08-09 17:30:23 +02:00
parent a25967e4c6
commit 03132bd219
2 changed files with 3 additions and 0 deletions

View File

@ -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;
}