diff options
| author | scorpion-26 <dev.scorpion26@gmail.com> | 2023-05-08 15:37:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-08 14:37:59 +0100 |
| commit | 826dc61e5cfe292a9967bd4397dcff37672fc194 (patch) | |
| tree | bf8c03821b81777d46a7add8802ca1dc0a91cb39 /src/config/ConfigManager.cpp | |
| parent | a31dceb2c623c41565193328f98b50694917e0bf (diff) | |
Add "next on monitor or empty" workspace parameter (#2198)
* Add "next on monitor or empty" workspace parameter
Implements the following workspace parameter:
r+x/r-x (i.e. r+1): Behaves similar to the "m" parameter, but can also
select empty workspaces and it doesn't wrap around
* Improve code comments
* Implementation V2 for 'r' workspace param
* Rebase to upstream
Should fix CI
* Always set outName
* Include named workspaces
Currently only considers open/active named workspaces
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 04764779..27b42171 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -2026,6 +2026,10 @@ std::string CConfigManager::getBoundMonitorStringForWS(const std::string& wsname return ""; } +const std::deque<SWorkspaceRule>& CConfigManager::getAllWorkspaceRules() { + return m_dWorkspaceRules; +} + void CConfigManager::addExecRule(const SExecRequestedRule& rule) { execRequestedRules.push_back(rule); } |
