From db8baa0c58d388529326c42810dc3ca3f9def3b7 Mon Sep 17 00:00:00 2001 From: moons-14 Date: Wed, 11 Mar 2026 20:44:15 +0900 Subject: [PATCH] zellij: add pane resize keybinds with Alt+Shift+hjkl Co-Authored-By: Claude Sonnet 4.6 --- modules/home/zellij.nix | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/modules/home/zellij.nix b/modules/home/zellij.nix index 00c263f..2279d74 100644 --- a/modules/home/zellij.nix +++ b/modules/home/zellij.nix @@ -13,18 +13,26 @@ keybinds { locked { bind "Ctrl g" { SwitchToMode "normal"; } - bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } - bind "Alt j" "Alt Down" { MoveFocus "Down"; } - bind "Alt k" "Alt Up" { MoveFocus "Up"; } - bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } - bind "Alt n" { NewPane; } + bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } + bind "Alt j" "Alt Down" { MoveFocus "Down"; } + bind "Alt k" "Alt Up" { MoveFocus "Up"; } + bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } + bind "Alt n" { NewPane; } + bind "Alt H" "Alt S-Left" { Resize "Increase Left"; } + bind "Alt J" "Alt S-Down" { Resize "Increase Down"; } + bind "Alt K" "Alt S-Up" { Resize "Increase Up"; } + bind "Alt L" "Alt S-Right" { Resize "Increase Right"; } } normal { - bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } - bind "Alt j" "Alt Down" { MoveFocus "Down"; } - bind "Alt k" "Alt Up" { MoveFocus "Up"; } - bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } - bind "Alt n" { NewPane; } + bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } + bind "Alt j" "Alt Down" { MoveFocus "Down"; } + bind "Alt k" "Alt Up" { MoveFocus "Up"; } + bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } + bind "Alt n" { NewPane; } + bind "Alt H" "Alt S-Left" { Resize "Increase Left"; } + bind "Alt J" "Alt S-Down" { Resize "Increase Down"; } + bind "Alt K" "Alt S-Up" { Resize "Increase Up"; } + bind "Alt L" "Alt S-Right" { Resize "Increase Right"; } } } '';