feat(sway): add workspace css class

pull/2017/head
Pascal Huber 2023-02-18 19:57:09 +01:00
parent ea38eec2af
commit a10464d9bb
1 changed files with 1 additions and 0 deletions

View File

@ -231,6 +231,7 @@ auto Workspaces::update() -> void {
box_.reorder_child(button, it - workspaces_.begin());
}
std::string output = (*it)["name"].asString();
button.get_style_context()->add_class("workspace-" + trimWorkspaceName(output));
if (config_["format"].isString()) {
auto format = config_["format"].asString();
output = fmt::format(fmt::runtime(format), fmt::arg("icon", getIcon(output, *it)),