summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-22 14:11:52 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-22 14:11:52 +0200
commit15eb844260965dfeeddf9a684e00175bac62ee9b (patch)
tree9d72075ce85606c8b7f4719f91fcc98e25472dac /src/debug/HyprCtl.cpp
parent091048412a35b2f1d4d1be2a065b8802d964bc5c (diff)
reload keyboards if input changed in hyprctl
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 160eaff6..123f3ceb 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -103,6 +103,9 @@ std::string dispatchKeyword(std::string in) {
if (COMMAND == "monitor")
g_pConfigManager->m_bWantsMonitorReload = true; // for monitor keywords
+ if (COMMAND.find("input") != std::string::npos)
+ g_pInputManager->setKeyboardLayout(); // update kb layout
+
Debug::log(LOG, "Hyprctl: keyword %s : %s", COMMAND.c_str(), VALUE.c_str());
if (retval == "")