From f1cb02cfabe8d6fa24a5a488246c8ea7fa218054 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 16 Apr 2026 10:03:39 +0300 Subject: [PATCH] default-config: Bind Mod+Shift+R to switch-preset-column-width-back by default Height presets aren't frequently needed in my experience, but switching preset width back is very useful on 21:9 and wider monitors where you have many more presets. --- docs/wiki/Configuration:-Layout.md | 4 ++-- resources/default-config.kdl | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/wiki/Configuration:-Layout.md b/docs/wiki/Configuration:-Layout.md index 23e65ebf..5e5e2a5c 100644 --- a/docs/wiki/Configuration:-Layout.md +++ b/docs/wiki/Configuration:-Layout.md @@ -177,7 +177,7 @@ layout { ### `preset-column-widths` Set the widths that the `switch-preset-column-width` action (Mod+R) toggles between. -Since: 25.08 You can use the `switch-preset-column-width-back` action (not bound by default) to toggle in reverse. +Since: 25.08 You can use the `switch-preset-column-width-back` action (Mod+Shift+R) to toggle in reverse. `proportion` sets the width as a fraction of the output width, taking gaps into account. For example, you can perfectly fit four windows sized `proportion 0.25` on an output, regardless of the gaps setting. @@ -229,7 +229,7 @@ layout { Since: 0.1.9 -Set the heights that the `switch-preset-window-height` action (Mod+Shift+R) toggles between. +Set the heights that the `switch-preset-window-height` action (Mod+Ctrl+Shift+R) toggles between. Since: 25.08 You can use the `switch-preset-window-height-back` action (not bound by default) to toggle in reverse. `proportion` sets the height as a fraction of the output height, taking gaps into account. diff --git a/resources/default-config.kdl b/resources/default-config.kdl index 3fa09d56..ccad1ac2 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -134,7 +134,7 @@ layout { // fixed 1920 } - // You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between. + // You can also customize the heights that "switch-preset-window-height" (Mod+Ctrl+Shift+R) toggles between. // preset-window-heights { } // You can change the default width of the new windows. @@ -550,11 +550,14 @@ binds { // Expel the bottom window from the focused column to the right. Mod+Period { expel-window-from-column; } + // Cycle through widths set in preset-column-widths. Mod+R { switch-preset-column-width; } // Cycling through the presets in reverse order is also possible. - // Mod+R { switch-preset-column-width-back; } - Mod+Shift+R { switch-preset-window-height; } + Mod+Shift+R { switch-preset-column-width-back; } + + Mod+Ctrl+Shift+R { switch-preset-window-height; } Mod+Ctrl+R { reset-window-height; } + Mod+F { maximize-column; } Mod+Shift+F { fullscreen-window; }