feat(tmux): i3wm like movings panes

This commit is contained in:
thek4n 2024-05-16 10:28:57 +03:00
parent 5e8a282a01
commit cc64d8a279

View File

@ -113,16 +113,16 @@ bind -n M-0 if-shell 'tmux select-window -t 10' '' 'new-window -t 10 -n 10 -c "#
# Moving pane to window by Alt+Shift+Number # Moving pane to window by Alt+Shift+Number
bind -n 'M-!' join-pane -d -h -t :1 bind -n 'M-!' if-shell 'tmux join-pane -d -h -t :1' '' 'break-pane -t 1 -d -n 1'
bind -n 'M-@' join-pane -d -h -t :2 bind -n 'M-@' if-shell 'tmux join-pane -d -h -t :2' '' 'break-pane -t 2 -d -n 2'
bind -n 'M-#' join-pane -d -h -t :3 bind -n 'M-#' if-shell 'tmux join-pane -d -h -t :3' '' 'break-pane -t 3 -d -n 3'
bind -n 'M-$' join-pane -d -h -t :4 bind -n 'M-$' if-shell 'tmux join-pane -d -h -t :4' '' 'break-pane -t 4 -d -n 4'
bind -n 'M-%' join-pane -d -h -t :5 bind -n 'M-%' if-shell 'tmux join-pane -d -h -t :5' '' 'break-pane -t 5 -d -n 5'
bind -n 'M-^' join-pane -d -h -t :6 bind -n 'M-^' if-shell 'tmux join-pane -d -h -t :6' '' 'break-pane -t 6 -d -n 6'
bind -n 'M-&' join-pane -d -h -t :7 bind -n 'M-&' if-shell 'tmux join-pane -d -h -t :7' '' 'break-pane -t 7 -d -n 7'
bind -n 'M-*' join-pane -d -h -t :8 bind -n 'M-*' if-shell 'tmux join-pane -d -h -t :8' '' 'break-pane -t 8 -d -n 8'
bind -n 'M-(' join-pane -d -h -t :9 bind -n 'M-(' if-shell 'tmux join-pane -d -h -t :9' '' 'break-pane -t 9 -d -n 9'
bind -n 'M-)' join-pane -d -h -t :10 bind -n 'M-)' if-shell 'tmux join-pane -d -h -t :10' '' 'break-pane -t 10 -d -n 10'
# Swapping windows # Swapping windows