Merge pull request #3064 from alttabber/master
Hyprland/Workspaces: Added option to hide non-visible special workspaces
This commit is contained in:
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user