summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorthejch <66577496+thejch@users.noreply.github.com>2023-12-02 06:42:49 -0800
committerGitHub <noreply@github.com>2023-12-02 14:42:49 +0000
commit758cf90ea1066eea361a9d8c347e7fcf40f6636f (patch)
treea7455a55a5d8eead8f42bee08fe0b54a1e3ee535 /src/config/ConfigManager.cpp
parent6e8b9ef7d8aa53247d5122b6641b9afa0df798df (diff)
workspacerules: Add workspace rule for master layout orientation (#3964)
* add workspace rule for master layout orientation * change rule format * edit rule name * use map for layoutopts * use std::any instead of string
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 257446ee..5659667e 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -1214,6 +1214,8 @@ void CConfigManager::handleWorkspaceRules(const std::string& command, const std:
wsRule.isPersistent = configStringToInt(rule.substr(delim + 11));
else if ((delim = rule.find(ruleOnCreatedEmtpy)) != std::string::npos)
wsRule.onCreatedEmptyRunCmd = cleanCmdForWorkspace(name, rule.substr(delim + ruleOnCreatedEmtpyLen));
+ else if ((delim = rule.find("layoutopt:orientation:")) != std::string::npos)
+ wsRule.layoutopts["orientation"] = rule.substr(delim + 22);
};
size_t pos = 0;