diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 1ec4deb..5fba09d 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -76,23 +76,24 @@ bind h selectp -L bind j selectp -D bind k selectp -U bind l selectp -R -# Resize panes with Alt-Shift-[hjkl] -bind -n M-H resizep -L -bind -n M-J resizep -D -bind -n M-K resizep -U -bind -n M-L resizep -R + +# Resize mode similar to my i3 config +bind -T resize h resizep -L \; switchc -T resize +bind -T resize j resizep -D \; switchc -T resize +bind -T resize k resizep -U \; switchc -T resize +bind -T resize l resizep -R \; switchc -T resize +bind -T resize 1 selectl even-horizontal \; switchc -T resize +bind -T resize 2 selectl even-vertical \; switchc -T resize +bind -T resize 3 selectl main-horizontal \; switchc -T resize +bind -T resize 4 selectl main-vertical \; switchc -T resize +bind -T resize 5 selectl tiled \; switchc -T resize +bind r switchc -T resize # Allow C-h to still be passed (when programs expect it as backspace, e.g. UEFI # shell) bind -r -T selfinsert C-h send C-h bind C-v switchc -T selfinsert -# Resize panes with Alt-Shift- -bind -n M-S-Left resizep -L -bind -n M-S-Up resizep -D -bind -n M-S-Down resizep -U -bind -n M-S-Right resizep -R - # Synchronize the panes in the current window with `S` bind S set -w synchronize-panes