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
This commit is contained in:
scorpion-26
2023-05-08 15:37:59 +02:00
committed by GitHub
parent a31dceb2c6
commit 826dc61e5c
3 changed files with 140 additions and 2 deletions

View File

@@ -180,6 +180,7 @@ class CConfigManager {
CMonitor* getBoundMonitorForWS(const std::string&);
std::string getBoundMonitorStringForWS(const std::string&);
const std::deque<SWorkspaceRule>& getAllWorkspaceRules();
std::vector<SWindowRule> getMatchingRules(CWindow*);
std::vector<SLayerRule> getMatchingRules(SLayerSurface*);