diff options
| author | Thedudeman <108754421+RockClapps@users.noreply.github.com> | 2026-03-05 09:08:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-05 14:08:40 +0000 |
| commit | 3284dd729b3529e744a1c0db7d1c3ff1e296f7ea (patch) | |
| tree | baf24cda001a6a59ea40c5fada3de558cb9e2396 /src/config | |
| parent | 803e81ac398ff56816321fbe24f013671cfebc7f (diff) | |
algo/scrolling: add config options for focus and swapcol wrapping (#13518)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/ConfigDescriptions.hpp | 12 | ||||
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp index ef6ca535..31d67c12 100644 --- a/src/config/ConfigDescriptions.hpp +++ b/src/config/ConfigDescriptions.hpp @@ -2093,6 +2093,18 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = { .type = CONFIG_OPTION_CHOICE, .data = SConfigOptionDescription::SChoiceData{.firstIndex = 0, .choices = "right,left,down,up"}, }, + SConfigOptionDescription{ + .value = "scrolling:wrap_focus", + .description = "Determines if column focus wraps around when going before the first column or past the last column", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{.value = true}, + }, + SConfigOptionDescription{ + .value = "scrolling:wrap_swapcol", + .description = "Determines if column movement wraps around when moving to before the first column or past the last column", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{.value = true}, + }, /* * Quirks diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index e62130a4..46073c09 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -655,6 +655,8 @@ CConfigManager::CConfigManager() { registerConfigVar("scrolling:follow_min_visible", Hyprlang::FLOAT{0.4}); registerConfigVar("scrolling:explicit_column_widths", Hyprlang::STRING{"0.333, 0.5, 0.667, 1.0"}); registerConfigVar("scrolling:direction", Hyprlang::STRING{"right"}); + registerConfigVar("scrolling:wrap_focus", Hyprlang::INT{1}); + registerConfigVar("scrolling:wrap_swapcol", Hyprlang::INT{1}); registerConfigVar("animations:enabled", Hyprlang::INT{1}); registerConfigVar("animations:workspace_wraparound", Hyprlang::INT{0}); |
