@@ -39,6 +39,7 @@ class Workspaces : public AModule, public EventHandler {
|
|||||||
auto allOutputs() const -> bool { return m_allOutputs; }
|
auto allOutputs() const -> bool { return m_allOutputs; }
|
||||||
auto showSpecial() const -> bool { return m_showSpecial; }
|
auto showSpecial() const -> bool { return m_showSpecial; }
|
||||||
auto activeOnly() const -> bool { return m_activeOnly; }
|
auto activeOnly() const -> bool { return m_activeOnly; }
|
||||||
|
auto hideActive() const -> bool { return m_hideActive; }
|
||||||
auto specialVisibleOnly() const -> bool { return m_specialVisibleOnly; }
|
auto specialVisibleOnly() const -> bool { return m_specialVisibleOnly; }
|
||||||
auto persistentOnly() const -> bool { return m_persistentOnly; }
|
auto persistentOnly() const -> bool { return m_persistentOnly; }
|
||||||
auto moveToMonitor() const -> bool { return m_moveToMonitor; }
|
auto moveToMonitor() const -> bool { return m_moveToMonitor; }
|
||||||
@@ -146,6 +147,7 @@ class Workspaces : public AModule, public EventHandler {
|
|||||||
bool m_allOutputs = false;
|
bool m_allOutputs = false;
|
||||||
bool m_showSpecial = false;
|
bool m_showSpecial = false;
|
||||||
bool m_activeOnly = false;
|
bool m_activeOnly = false;
|
||||||
|
bool m_hideActive = false;
|
||||||
bool m_specialVisibleOnly = false;
|
bool m_specialVisibleOnly = false;
|
||||||
bool m_persistentOnly = false;
|
bool m_persistentOnly = false;
|
||||||
bool m_moveToMonitor = false;
|
bool m_moveToMonitor = false;
|
||||||
|
|||||||
@@ -123,6 +123,11 @@ This setting is ignored if *workspace-taskbar.enable* is set to true.
|
|||||||
default: false ++
|
default: false ++
|
||||||
If set to true, only the active workspace will be shown.
|
If set to true, only the active workspace will be shown.
|
||||||
|
|
||||||
|
*hide-active*: ++
|
||||||
|
typeof: bool ++
|
||||||
|
default: false ++
|
||||||
|
If set to true, the active workspace will be hidden. Unless a workspace is persistent or special.
|
||||||
|
|
||||||
*move-to-monitor*: ++
|
*move-to-monitor*: ++
|
||||||
typeof: bool ++
|
typeof: bool ++
|
||||||
default: false ++
|
default: false ++
|
||||||
|
|||||||
@@ -341,6 +341,15 @@ void Workspace::update(const std::string& workspace_icon) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
if (this->m_workspaceManager.hideActive() && \
|
||||||
|
this->isActive() && \
|
||||||
|
!this->isPersistent() && \
|
||||||
|
!this->isSpecial()) {
|
||||||
|
// clang-format on
|
||||||
|
m_button.hide();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// clang-format off
|
||||||
if (this->m_workspaceManager.activeOnly() && \
|
if (this->m_workspaceManager.activeOnly() && \
|
||||||
!this->isActive() && \
|
!this->isActive() && \
|
||||||
!this->isPersistent() && \
|
!this->isPersistent() && \
|
||||||
|
|||||||
@@ -662,6 +662,7 @@ auto Workspaces::parseConfig(const Json::Value& config) -> void {
|
|||||||
populateBoolConfig(config, "special-visible-only", m_specialVisibleOnly);
|
populateBoolConfig(config, "special-visible-only", m_specialVisibleOnly);
|
||||||
populateBoolConfig(config, "persistent-only", m_persistentOnly);
|
populateBoolConfig(config, "persistent-only", m_persistentOnly);
|
||||||
populateBoolConfig(config, "active-only", m_activeOnly);
|
populateBoolConfig(config, "active-only", m_activeOnly);
|
||||||
|
populateBoolConfig(config, "hide-active", m_hideActive);
|
||||||
populateBoolConfig(config, "move-to-monitor", m_moveToMonitor);
|
populateBoolConfig(config, "move-to-monitor", m_moveToMonitor);
|
||||||
populateBoolConfig(config, "enable-bar-scroll", m_barScroll);
|
populateBoolConfig(config, "enable-bar-scroll", m_barScroll);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user