summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-20 18:57:30 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-20 18:57:30 +0200
commit7af193d921dcc52e36b91a67a3433abdd5a994f7 (patch)
treea23f4b26b0309df592459d8fdae720d82d90be1e /src/debug/HyprCtl.cpp
parent132c96f867198cb68e77ed9930165c51bb8e49f7 (diff)
reload on input and device hyprctl
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 2f5660df..6b89b3c6 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -493,8 +493,10 @@ std::string dispatchKeyword(std::string in) {
if (COMMAND == "monitor")
g_pConfigManager->m_bWantsMonitorReload = true; // for monitor keywords
- if (COMMAND.contains("input"))
+ if (COMMAND.contains("input") || COMMAND.contains("device:")) {
g_pInputManager->setKeyboardLayout(); // update kb layout
+ g_pInputManager->setMouseConfigs(); // update mouse cfgs
+ }
if (COMMAND.contains("general:layout"))
g_pLayoutManager->switchToLayout(g_pConfigManager->getString("general:layout")); // update layout