add rewrite to wlr tooltip

This commit is contained in:
Ricardo Nogueira
2024-11-12 17:10:05 -03:00
parent 52d582b93a
commit ddb3016440

View File

@ -682,6 +682,9 @@ void Task::update() {
fmt::format(fmt::runtime(format_tooltip_), fmt::arg("title", title), fmt::arg("name", name),
fmt::arg("app_id", app_id), fmt::arg("state", state_string()),
fmt::arg("short_state", state_string(true)));
txt = waybar::util::rewriteString(txt, config_["rewrite"]);
if (markup)
button.set_tooltip_markup(txt);
else