From 1eb0b573512b7fbe18c907ad36dbe3cdf52ff96d Mon Sep 17 00:00:00 2001 From: Myned Date: Thu, 2 Jan 2025 12:00:25 -0600 Subject: [PATCH] niri: use relative resize instead of preset binds Signed-off-by: Myned --- options/custom/desktops/niri/binds.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/options/custom/desktops/niri/binds.nix b/options/custom/desktops/niri/binds.nix index 4c95b6e..6fa2f76 100644 --- a/options/custom/desktops/niri/binds.nix +++ b/options/custom/desktops/niri/binds.nix @@ -163,8 +163,12 @@ 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 "Z" "Mod" switch-preset-window-height) + #// (key "X" "Mod" switch-preset-column-width) + (key "X" "Mod" (set-column-width "+10%")) + (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+Shift" (set-window-height "-10%")) # BUG: Release binds execute with all binds involving that modifier # https://github.com/YaLTeR/niri/issues/605