mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
add 'visible' css class to special workspaces
This commit is contained in:
@ -184,6 +184,12 @@ void Workspaces::doUpdate() {
|
||||
if (ws.isObject() && (ws["name"].isString())) {
|
||||
visibleWorkspaces.push_back(ws["name"].asString());
|
||||
}
|
||||
auto sws = monitor["specialWorkspace"];
|
||||
auto name = sws["name"].asString();
|
||||
if (sws.isObject() && (sws["name"].isString()) && !name.empty()) {
|
||||
visibleWorkspaces.push_back(name == "special" ? "special"
|
||||
: name.substr(8, name.length() - 8));
|
||||
}
|
||||
}
|
||||
|
||||
for (auto &workspace : m_workspaces) {
|
||||
|
Reference in New Issue
Block a user