Skip to content

Commit

Permalink
add 'visible' css class to special workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jramrath committed Feb 7, 2024
1 parent c30541b commit 61be226
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/hyprland/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 61be226

Please sign in to comment.