summaryrefslogtreecommitdiff
path: root/src/config/ConfigDescriptions.hpp
diff options
context:
space:
mode:
authorViktor <vlofgren@gmail.com>2025-06-10 09:20:31 +0200
committerGitHub <noreply@github.com>2025-06-10 08:20:31 +0100
commit6bdb1f413e4c592f73d91bef33dfb202503ef7ab (patch)
tree2ab47ef05a2c084188d618119aa72dda5c1bb782 /src/config/ConfigDescriptions.hpp
parent81468253eac574ed4410075eb991a338fff423df (diff)
dwindle: add the ability to specify an aspect ratio for a singular window (#10650)
Diffstat (limited to 'src/config/ConfigDescriptions.hpp')
-rw-r--r--src/config/ConfigDescriptions.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp
index 1eff8c63..7d62c833 100644
--- a/src/config/ConfigDescriptions.hpp
+++ b/src/config/ConfigDescriptions.hpp
@@ -1782,6 +1782,18 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{false},
},
+ SConfigOptionDescription{
+ .value = "dwindle:single_window_aspect_ratio",
+ .description = "If specified, whenever only a single window is open, it will be coerced into the specified aspect ratio. Ignored if the y-value is zero.",
+ .type = CONFIG_OPTION_VECTOR,
+ .data = SConfigOptionDescription::SVectorData{{0, 0}, {0, 0}, {1000., 1000.}},
+ },
+ SConfigOptionDescription{
+ .value = "dwindle:single_window_aspect_ratio_tolerance",
+ .description = "Minimum distance for single_window_aspect_ratio to take effect, in fractions of the monitor's size.",
+ .type = CONFIG_OPTION_FLOAT,
+ .data = SConfigOptionDescription::SFloatData{0.1f, 0.f, 1.f},
+ },
/*
* master: