summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorGrant Ammons <grant@grant.dev>2024-03-05 14:18:53 -0500
committerGitHub <noreply@github.com>2024-03-05 19:18:53 +0000
commit0ee69058c447b91bd142523676b13c5af8685ba8 (patch)
tree8d9711216da4e6c48cc446bc3aceb29c30047b4e /src/config/ConfigManager.cpp
parentf8a081b56d09ec325ac485a0f055e541146486d3 (diff)
config: Add input:scroll_factor configuration (#4980)
* Allow for input:scroll_factor configuration This PR will allow for a `scroll_factor` configuration within an `input` block. The purpose is to control the scroll factor of external mice. Closes #2574. * clang-format
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 7c957510..08b2e3c1 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -455,6 +455,7 @@ CConfigManager::CConfigManager() {
m_pConfig->addConfigValue("input:scroll_method", {STRVAL_EMPTY});
m_pConfig->addConfigValue("input:scroll_button", Hyprlang::INT{0});
m_pConfig->addConfigValue("input:scroll_button_lock", Hyprlang::INT{0});
+ m_pConfig->addConfigValue("input:scroll_factor", {1.f});
m_pConfig->addConfigValue("input:scroll_points", {STRVAL_EMPTY});
m_pConfig->addConfigValue("input:touchpad:natural_scroll", Hyprlang::INT{0});
m_pConfig->addConfigValue("input:touchpad:disable_while_typing", Hyprlang::INT{1});