From 03624e206009e5c1c14a2ad48e37865ec7741e00 Mon Sep 17 00:00:00 2001 From: Sixels Date: Tue, 19 Apr 2022 13:42:26 -0300 Subject: Handle subcategories --- src/config/ConfigManager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/config') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 30585502..cf2ad8fe 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -260,7 +260,14 @@ void CConfigManager::parseLine(std::string& line) { if (line.find(" {") != std::string::npos) { auto cat = line.substr(0, line.find(" {")); transform(cat.begin(), cat.end(), cat.begin(), ::tolower); - currentCategory = cat; + if (currentCategory.length() != 0) { + currentCategory.push_back(':'); + currentCategory.append(cat); + } + else { + currentCategory = cat; + } + return; } -- cgit v1.2.3 From 6719574f0cbe643bc213630ccc0d6ff3dc6faf59 Mon Sep 17 00:00:00 2001 From: Sixels Date: Tue, 19 Apr 2022 13:51:53 -0300 Subject: Add input options to config --- src/config/ConfigManager.cpp | 3 +++ src/config/defaultConfig.hpp | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'src/config') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index cf2ad8fe..4d8affec 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -55,6 +55,9 @@ void CConfigManager::setDefaultVars() { configValues["input:kb_options"].strValue = ""; configValues["input:kb_rules"].strValue = ""; configValues["input:kb_model"].strValue = ""; + configValues["input:repeat_rate"].intValue = 25; + configValues["input:repeat_delay"].intValue = 600; + configValues["input:touchpad:disable_while_typing"].intValue = 1; configValues["input:follow_mouse"].intValue = 1; diff --git a/src/config/defaultConfig.hpp b/src/config/defaultConfig.hpp index 550d0601..98e32d33 100644 --- a/src/config/defaultConfig.hpp +++ b/src/config/defaultConfig.hpp @@ -19,6 +19,12 @@ input { kb_model= kb_options= kb_rules= + repeat_rate= + repeat_delay= + + touchpad { + disable_while_typing= + } } general { -- cgit v1.2.3