From 9500a28485bb23e328fac83855a29f451045c1e7 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 4 Jan 2025 12:15:50 -0600 Subject: [PATCH] niri: modify window size binds Signed-off-by: Myned --- options/custom/desktops/niri/binds.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/options/custom/desktops/niri/binds.nix b/options/custom/desktops/niri/binds.nix index 6fa2f76..e8accf7 100644 --- a/options/custom/desktops/niri/binds.nix +++ b/options/custom/desktops/niri/binds.nix @@ -163,11 +163,13 @@ in { (key "WheelScrollRight" "Mod+Shift" move-column-right-or-to-monitor-right) (key "WheelScrollUp" "Mod" focus-window-or-workspace-up) (key "WheelScrollUp" "Mod+Shift" move-window-up-or-to-workspace-up) - #// (key "X" "Mod" switch-preset-column-width) (key "X" "Mod" (set-column-width "+10%")) + (key "X" "Mod+Ctrl" (set-column-width "100%")) + (key "X" "Mod+Ctrl+Shift" (set-window-height "100%")) (key "X" "Mod+Shift" (set-window-height "+10%")) - #// (key "Z" "Mod" switch-preset-window-height) (key "Z" "Mod" (set-column-width "-10%")) + (key "Z" "Mod+Ctrl" (set-column-width "30%")) + (key "Z" "Mod+Ctrl+Shift" (set-window-height "30%")) (key "Z" "Mod+Shift" (set-window-height "-10%")) # BUG: Release binds execute with all binds involving that modifier