Unique icons for active and named workspaces

Allows you to set active icons for named workspaces:
"active:<workspace name>" = ""
This commit is contained in:
Aaron Gerbert
2025-12-09 19:13:24 -05:00
parent 161367d961
commit 268e33e892
+7
View File
@@ -161,6 +161,13 @@ std::string &Workspace::selectIcon(std::map<std::string, std::string> &icons_map
} }
} }
if (isActive() && isSpecial()) {
auto activeIconIt = icons_map.find("active:" + name());
if (activeIconIt != icons_map.end()) {
return activeIconIt->second;
}
}
if (isActive()) { if (isActive()) {
auto activeIconIt = icons_map.find("active"); auto activeIconIt = icons_map.find("active");
if (activeIconIt != icons_map.end()) { if (activeIconIt != icons_map.end()) {