From d4ea89f3560c66ecbb8c7a37d375db1345fd50f3 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 15 May 2026 10:19:05 +0800 Subject: [PATCH] opt: dwindle_hsplit and dwindle_vsplit default to 1 --- docs/window-management/layouts.md | 4 ++-- src/config/parse_config.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/window-management/layouts.md b/docs/window-management/layouts.md index 4ed2b404..bf5283d7 100644 --- a/docs/window-management/layouts.md +++ b/docs/window-management/layouts.md @@ -93,8 +93,8 @@ The Dwindle layout arranges windows as a binary tree of recursive splits. Each n | :--- | :--- | :--- | | `dwindle_split_ratio` | `0.5` | Ratio used for new splits (`0.05`–`0.95`). | | `dwindle_smart_split` | `0` | Pick the split axis from the cursor's position inside the focused window. The new window appears on the cursor's side. | -| `dwindle_hsplit` | `0` | Side-by-side splits: where the new window goes. `0` = follow cursor, `1` = right, `2` = left. | -| `dwindle_vsplit` | `0` | Top/bottom splits: where the new window goes. `0` = follow cursor, `1` = below, `2` = above. | +| `dwindle_hsplit` | `1` | Side-by-side splits: where the new window goes. `0` = follow cursor, `1` = right, `2` = left. | +| `dwindle_vsplit` | `1` | Top/bottom splits: where the new window goes. `0` = follow cursor, `1` = below, `2` = above. | | `dwindle_preserve_split` | `0` | Keep the sibling's split orientation when a window is closed. | | `dwindle_smart_resize` | `0` | When dragging to resize, move the split toward the cursor regardless of which side was grabbed. | | `dwindle_drop_simple_split` | `1` | Drag-to-tile drop preview. `1` = 2-zone preview matching `dwindle_split_ratio`, `0` = 4-quadrant preview. | diff --git a/src/config/parse_config.h b/src/config/parse_config.h index c9426c6a..9d925457 100644 --- a/src/config/parse_config.h +++ b/src/config/parse_config.h @@ -3368,8 +3368,8 @@ void set_value_default() { config.center_master_overspread = 0; config.center_when_single_stack = 1; - config.dwindle_vsplit = 0; - config.dwindle_hsplit = 0; + config.dwindle_vsplit = 1; + config.dwindle_hsplit = 1; config.dwindle_preserve_split = 0; config.dwindle_smart_split = 0; config.dwindle_smart_resize = 0;