Merge pull request #3064 from alttabber/master

Hyprland/Workspaces: Added option to hide non-visible special workspaces
This commit is contained in:
Alexis Rouillard
2024-05-29 10:23:26 +02:00
committed by GitHub
4 changed files with 12 additions and 0 deletions

View File

@ -182,6 +182,10 @@ void Workspace::update(const std::string &format, const std::string &icon) {
m_button.hide();
return;
}
if (this->m_workspaceManager.specialVisibleOnly() && this->isSpecial() && !this->isVisible()) {
m_button.hide();
return;
}
m_button.show();
auto styleContext = m_button.get_style_context();

View File

@ -576,6 +576,7 @@ auto Workspaces::parseConfig(const Json::Value &config) -> void {
populateBoolConfig(config, "all-outputs", m_allOutputs);
populateBoolConfig(config, "show-special", m_showSpecial);
populateBoolConfig(config, "special-visible-only", m_specialVisibleOnly);
populateBoolConfig(config, "active-only", m_activeOnly);
populateBoolConfig(config, "move-to-monitor", m_moveToMonitor);