From 7eb2a1023b7b5b25daf8ee836627ab78da2233ca Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 24 Mar 2022 21:05:34 +0100 Subject: Added keyboard configuration --- src/config/ConfigManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index b29edacc..f4f1548e 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -27,6 +27,12 @@ CConfigManager::CConfigManager() { configValues["animations:windows"].intValue = 1; configValues["animations:borders"].intValue = 1; configValues["animations:fadein"].intValue = 1; + + configValues["input:kb_layout"].strValue = "en"; + configValues["input:kb_variant"].strValue = ""; + configValues["input:kb_options"].strValue = ""; + configValues["input:kb_rules"].strValue = ""; + configValues["input:kb_model"].strValue = ""; } void CConfigManager::init() { @@ -312,6 +318,9 @@ void CConfigManager::loadConfigLoadVars() { for (auto& m : g_pCompositor->m_lMonitors) g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m.ID); + // Update the keyboard layout to the cfg'd one + g_pInputManager->setKeyboardLayout(); + // Calculate the mod mask for main_mod configValues["general:main_mod_internal"].intValue = g_pKeybindManager->stringToModMask(configValues["general:main_mod"].strValue); } -- cgit v1.2.3