man docs & different css class name

This commit is contained in:
Jannik 2024-03-16 21:22:01 +01:00
parent 9bc8de8876
commit f014a7d2e5
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -158,3 +158,4 @@ Additional to workspace name matching, the following *format-icons* can be set.
- *#workspaces button.persistent* - *#workspaces button.persistent*
- *#workspaces button.special* - *#workspaces button.special*
- *#workspaces button.urgent* - *#workspaces button.urgent*
- *#workspaces button.hosting-monitor* (gets applied if workspace-monitor == waybar-monitor)

View File

@ -872,7 +872,7 @@ void Workspace::update(const std::string &format, const std::string &icon) {
addOrRemoveClass(styleContext, isPersistent(), "persistent"); addOrRemoveClass(styleContext, isPersistent(), "persistent");
addOrRemoveClass(styleContext, isUrgent(), "urgent"); addOrRemoveClass(styleContext, isUrgent(), "urgent");
addOrRemoveClass(styleContext, isVisible(), "visible"); addOrRemoveClass(styleContext, isVisible(), "visible");
addOrRemoveClass(styleContext, m_workspaceManager.getBarOutput() == output(), "onThisMonitor"); addOrRemoveClass(styleContext, m_workspaceManager.getBarOutput() == output(), "hosting-monitor");
std::string windows; std::string windows;
auto windowSeparator = m_workspaceManager.getWindowSeparator(); auto windowSeparator = m_workspaceManager.getWindowSeparator();