Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions man/waybar-hyprland-workspaces.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ Additional to workspace name matching, the following *format-icons* can be set.
- *#workspaces*
- *#workspaces button*
- *#workspaces button.active*
- *#workspaces button.visible*
- *#workspaces button.empty*
- *#workspaces button.visible*
- *#workspaces button.persistent*
Expand Down
4 changes: 4 additions & 0 deletions resources/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ button:hover {
background: rgba(0, 0, 0, 0.2);
}

#workspaces button.visible {
background-color: rgba(100, 114, 125, 0.5);
}

#workspaces button.focused, #workspaces button.active {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
Expand Down
1 change: 1 addition & 0 deletions src/modules/hyprland/workspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ void Workspace::update(const std::string& workspace_icon, const std::string& wor

auto styleContext = m_button.get_style_context();
addOrRemoveClass(styleContext, isActive(), "active");
addOrRemoveClass(styleContext, isVisible(), "visible");
addOrRemoveClass(styleContext, isSpecial(), "special");
addOrRemoveClass(styleContext, isSpecial(), name());
addOrRemoveClass(styleContext, isEmpty(), "empty");
Expand Down
Loading