16 lines
679 B
Diff
16 lines
679 B
Diff
diff --git a/src/modules/sway/workspaces.cpp b/src/modules/sway/workspaces.cpp
|
|
index e0255893..13db7f3a 100644
|
|
--- a/src/modules/sway/workspaces.cpp
|
|
+++ b/src/modules/sway/workspaces.cpp
|
|
@@ -344,9 +344,9 @@ auto Workspaces::update() -> void {
|
|
fmt::arg("output", (*it)["output"].asString()));
|
|
}
|
|
if (!config_["disable-markup"].asBool()) {
|
|
- static_cast<Gtk::Label*>(button.get_children()[0])->set_markup(output);
|
|
+ static_cast<Gtk::Label*>(button.get_children()[0])->set_markup(trimWorkspaceName(output));
|
|
} else {
|
|
- button.set_label(output);
|
|
+ button.set_label(trimWorkspaceName(output));
|
|
}
|
|
onButtonReady(*it, button);
|
|
}
|