Merge pull request #4133 from Roc25/persistent-only

Add persistent-only setting for hyprland/workspaces
This commit is contained in:
Alexis Rouillard
2025-06-22 08:50:33 +01:00
committed by GitHub
4 changed files with 12 additions and 0 deletions

View File

@ -173,6 +173,10 @@ std::string &Workspace::selectIcon(std::map<std::string, std::string> &icons_map
}
void Workspace::update(const std::string &format, const std::string &icon) {
if (this->m_workspaceManager.persistentOnly() && !this->isPersistent()) {
m_button.hide();
return;
}
// clang-format off
if (this->m_workspaceManager.activeOnly() && \
!this->isActive() && \