From ba7c68e39e8a783d8596254eb1dfcb2b5c6135e7 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Tue, 5 Nov 2024 15:03:51 +0100 Subject: [PATCH] feat(niri): preset window heights and column width --- common/home.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/common/home.nix b/common/home.nix index c9d1e46..874408a 100644 --- a/common/home.nix +++ b/common/home.nix @@ -306,7 +306,8 @@ layout = { gaps = 10; default-column-width.proportion = 0.5; - preset-window-heights = [{ proportion = 1.0 / 2.0; }]; + preset-column-widths = [ { proportion = 0.5; } { proportion = 0.9; } ]; + preset-window-heights = [{ proportion = 0.5; }]; focus-ring.enable = false; border = { enable = true; @@ -325,6 +326,7 @@ matches = [{ app-id = "^(im\\.riot\\.Riot|WebCord|@joplin/app-desktop)$"; }]; open-on-workspace = "apps"; + default-column-width.proportion = 0.9; } { geometry-corner-radius = { @@ -359,11 +361,12 @@ "Mod+Shift+WheelScrollDown".action = move-column-right; "Mod+Shift+WheelScrollUp".action = move-column-left; "Mod+Tab".action = focus-workspace-previous; - "Mod+F".action = maximize-column; - "Mod+W".action = set-column-width "-10%"; - "Mod+X".action = set-column-width "+10%"; - "Mod+Shift+W".action = set-window-height "-10%"; - "Mod+Shift+X".action = set-window-height "+10%"; + "Mod+Shift+W".action = maximize-column; + "Mod+Shift+X".action = reset-window-height; + "Mod+W".action = switch-preset-window-height; + "Mod+X".action = switch-preset-column-width; + "Mod+E".action = set-column-width "-10%"; + "Mod+R".action = set-column-width "+10%"; "Print".action = screenshot-screen; "Shift+Print".action = screenshot; "Alt+Print".action = screenshot-window;