From 6aa26582f63c13e32dd0191015550a2d1eade7e6 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 3 Dec 2022 15:56:07 +0000 Subject: added hyprctl switchxkblayout --- src/config/ConfigManager.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 66c22318..fdb227c3 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1333,13 +1333,10 @@ SConfigValue CConfigManager::getConfigValueSafe(const std::string& val) { SConfigValue CConfigManager::getConfigValueSafeDevice(const std::string& dev, const std::string& val) { std::lock_guard lg(configmtx); - auto devcopy = dev; - std::replace(devcopy.begin(), devcopy.end(), ' ', '-'); - - const auto it = deviceConfigs.find(devcopy); + const auto it = deviceConfigs.find(dev); if (it == deviceConfigs.end()) { - Debug::log(ERR, "getConfigValueSafeDevice: No device config for %s found???", devcopy.c_str()); + Debug::log(ERR, "getConfigValueSafeDevice: No device config for %s found???", dev.c_str()); return SConfigValue(); } -- cgit v1.2.3