diff options
| author | Grant Ammons <grant@grant.dev> | 2024-03-05 14:18:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-05 19:18:53 +0000 |
| commit | 0ee69058c447b91bd142523676b13c5af8685ba8 (patch) | |
| tree | 8d9711216da4e6c48cc446bc3aceb29c30047b4e /src/config/ConfigManager.cpp | |
| parent | f8a081b56d09ec325ac485a0f055e541146486d3 (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.cpp | 1 |
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}); |
