summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorRichard Potter <47724110+kirpy0x@users.noreply.github.com>2025-10-13 06:08:40 -0600
committerGitHub <noreply@github.com>2025-10-13 13:08:40 +0100
commit7fcaf332e8bacd62c04ba5805ea5d2ab91b38da4 (patch)
tree3d6792f7d6f6fdded8b84dabfdc328d2d39eabad /src/config
parent6582f42db85bd6e7216d6e77c839f03933974da4 (diff)
layouts: apply [min|max]size window rules to dwindle & master layouts (#11898)
Uses min/max rules in the tiled layouts, akin to pseudotiling
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 091cf507..1352667f 100644
--- a/src/config/ConfigDescriptions.hpp
+++ b/src/config/ConfigDescriptions.hpp
@@ -1339,6 +1339,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{false},
},
+ SConfigOptionDescription{
+ .value = "misc:size_limits_tiled",
+ .description = "whether to apply minsize and maxsize rules to tiled windows",
+ .type = CONFIG_OPTION_BOOL,
+ .data = SConfigOptionDescription::SBoolData{false},
+ },
/*
* binds:
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 47ac4730..7a58ffcf 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -522,6 +522,7 @@ CConfigManager::CConfigManager() {
registerConfigVar("misc:anr_missed_pings", Hyprlang::INT{5});
registerConfigVar("misc:screencopy_force_8b", Hyprlang::INT{1});
registerConfigVar("misc:disable_scale_notification", Hyprlang::INT{0});
+ registerConfigVar("misc:size_limits_tiled", Hyprlang::INT{0});
registerConfigVar("group:insert_after_current", Hyprlang::INT{1});
registerConfigVar("group:focus_removed_window", Hyprlang::INT{1});