view_quilt
Built-in Pane Layouts
Press Ctrl+b Space to cycle through layouts:
navigation
Vim-Style Pane Navigation
# Navigate panes with h,j,k,l
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# Resize panes with H,J,K,L
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
sync
Sync Panes (Type in All Panes)
:setw synchronize-panes on # Enable sync
:setw synchronize-panes off # Disable sync
💡 Great for running same command across multiple servers
save
Save & Restore Custom Layouts
# Save current layout
:select-layout -E # Spread evenly first
:run-shell "tmux list-windows -F '#{window_layout}' > ~/.tmux-layout"
# Restore saved layout
:run-shell "tmux select-layout \"$(cat ~/.tmux-layout)\""
dashboard
Custom Layout Shortcuts
# Add to ~/.tmux.conf
bind-key H select-layout even-horizontal
bind-key V select-layout even-vertical
bind-key P select-layout main-vertical \; resize-pane -t 0 -x 120
Ctrl+b H Horizontal layout
Ctrl+b V Vertical layout
Ctrl+b P Programming layout
keyboard_arrow_right
Alt-Arrow Pane Navigation (No Prefix)
# Switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
content_copy
System Clipboard Integration (Linux)
# Copy to system clipboard: Alt+c
bind M-c run "tmux save-buffer - | xclip -i -sel clipboard"
# Paste from system clipboard: Alt+v
bind M-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
tune
Status Bar Customization
set -g status-position bottom
set -g status-justify left
set -g status-style 'fg=cyan bg=black'
set -g status-left ''
set -g status-right '%Y-%m-%d %H:%M '
set -g status-right-length 50
setw -g window-status-current-style 'fg=black bg=cyan'
restore
Session Persistence with tmux-resurrect
Install tmux-resurrect plugin to save and restore sessions:
# Save: Ctrl+b Ctrl+s
# Restore: Ctrl+b Ctrl+r
# Install via TPM (Tmux Plugin Manager)
set -g @plugin 'tmux-plugins/tmux-resurrect'