summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorLeviVanDerMaas <80783230+LeviVanDerMaas@users.noreply.github.com>2025-03-30 03:11:39 +0200
committerGitHub <noreply@github.com>2025-03-30 03:11:39 +0200
commit05eb0aa43ded10f008be3cfcde33fe0bfe6e45b1 (patch)
treee469ec8a71c285f3eecb605a7a1821e450d7ac85 /src/config
parentfc7223edc08a2e330052e699e91ba35402aa088b (diff)
workspaces: Add binds:hide_special_on_workspace_change (#9728)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ConfigDescriptions.hpp6
-rw-r--r--src/config/ConfigManager.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp
index 402780e0..3e9563ee 100644
--- a/src/config/ConfigDescriptions.hpp
+++ b/src/config/ConfigDescriptions.hpp
@@ -1247,6 +1247,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.data = SConfigOptionDescription::SBoolData{false},
},
SConfigOptionDescription{
+ .value = "binds:hide_special_on_workspace_change",
+ .description = "If enabled, changing the active workspace (including to itself) will hide the special workspace on the monitor where the newly active workspace resides.",
+ .type = CONFIG_OPTION_BOOL,
+ .data = SConfigOptionDescription::SBoolData{false},
+ },
+ SConfigOptionDescription{
.value = "binds:allow_workspace_cycles",
.description = "If enabled, workspaces don’t forget their previous workspace, so cycles can be created by switching to the first workspace in a sequence, then endlessly "
"going to the previous workspace.",
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index ebbdb7c6..b32a2d03 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -626,6 +626,7 @@ CConfigManager::CConfigManager() {
registerConfigVar("binds:pass_mouse_when_bound", Hyprlang::INT{0});
registerConfigVar("binds:scroll_event_delay", Hyprlang::INT{300});
registerConfigVar("binds:workspace_back_and_forth", Hyprlang::INT{0});
+ registerConfigVar("binds:hide_special_on_workspace_change", Hyprlang::INT{0});
registerConfigVar("binds:allow_workspace_cycles", Hyprlang::INT{0});
registerConfigVar("binds:workspace_center_on", Hyprlang::INT{1});
registerConfigVar("binds:focus_preferred_method", Hyprlang::INT{0});