From 11f351dbeb937a7de1de2f15b08c81f3682e423b Mon Sep 17 00:00:00 2001 From: FluxTape Date: Fri, 29 Nov 2024 06:46:13 +0100 Subject: Implement empty-workspace-above-first (#745) * Implement empty-workspace-above-first option * add two failing tests * fix interactive_move_onto_empty_output_ewaf and interactive_move_onto_first_empty_workspace tests * Add two failing ewaf option toggle tests * Fix adding/removing first empty workspace on option toggle * Don't remove first empty workspace if focused * Stop workspace switch when enabling ewaf * layout/monitor: Offset workspace switch on adding workspace above * Fix some initial active workspace ids with ewaf * wiki: Document empty-workspace-above-first --------- Co-authored-by: Ivan Molodetskikh --- wiki/Configuration:-Layout.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'wiki/Configuration:-Layout.md') diff --git a/wiki/Configuration:-Layout.md b/wiki/Configuration:-Layout.md index c7a68835..7f7744d7 100644 --- a/wiki/Configuration:-Layout.md +++ b/wiki/Configuration:-Layout.md @@ -9,6 +9,7 @@ layout { gaps 16 center-focused-column "never" always-center-single-column + empty-workspace-above-first preset-column-widths { proportion 0.33333 @@ -100,6 +101,18 @@ layout { } ``` +### `empty-workspace-above-first` + +Since: 0.1.11 + +If set, niri will always add an empty workspace at the very start, in addition to the empty workspace at the very end. + +```kdl +layout { + empty-workspace-above-first +} +``` + ### `preset-column-widths` Set the widths that the `switch-preset-column-width` action (Mod+R) toggles between. -- cgit