71 lines
2.2 KiB
Bash
71 lines
2.2 KiB
Bash
# Moving between panes.
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
# Splitting panes
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
|
|
# Moving between windows.
|
|
# Provided you've mapped your `CAPS LOCK` key to the `CTRL` key,
|
|
# you can now move between panes without moving your hands off the home row.
|
|
bind -r C-h select-window -t :-
|
|
bind -r C-l select-window -t :+
|
|
|
|
# Pane resizing.
|
|
bind -r H resize-pane -L 5
|
|
bind -r J resize-pane -D 5
|
|
bind -r K resize-pane -U 5
|
|
bind -r L resize-pane -R 5
|
|
|
|
# reorder windows.
|
|
bind-key -n C-S-Left swap-window -t -1
|
|
bind-key -n C-S-Right swap-window -t +1
|
|
|
|
# Remove the delay for the escape key so vim is usable
|
|
set -g escape-time 0
|
|
|
|
# Proxy focus events
|
|
set -g focus-events on
|
|
|
|
# Settings for yazi image preview in tmux https://yazi-rs.github.io/docs/image-preview/
|
|
set -g allow-passthrough on
|
|
set -ga update-environment TERM
|
|
set -ga update-environment TERM_PROGRAM
|
|
|
|
# Set the default terminal mode to 256color mode.
|
|
set -g default-terminal "screen-256color"
|
|
|
|
# Enable activity alerts.
|
|
setw -g monitor-activity on
|
|
set -g visual-activity on
|
|
|
|
# Pane colors.
|
|
set -g pane-border-style fg="green",bg="black"
|
|
set -g pane-active-border-style fg="white",bg="yellow"
|
|
|
|
# Command / message line.
|
|
set -g message-style bright,fg="white",bg="black"
|
|
|
|
# Enable vi keys.
|
|
setw -g mode-keys vi
|
|
|
|
# Copy/paste vim binding
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
|
|
|
# Status bar
|
|
set -g status-left-length 52
|
|
set -g status-right-length 451
|
|
set -g status-style fg="white",bg="colour234"
|
|
set -g window-status-activity-style bold
|
|
set -g pane-border-style fg="colour245"
|
|
set -g pane-active-border-style fg="colour39"
|
|
set -g message-style bold,fg="colour16",bg="colour221"
|
|
# set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S#[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(hostname)#[fg=colour238,bg=colour234,nobold]⮀'
|
|
# set -g status-right "#[fg=colour39, bg=colour234]⮂#[fg=colour234,bg=colour39] 🐳 "
|
|
# set -g window-status-format "#[fg=white,bg=colour234] #I #W "
|
|
# set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W#[fg=colour39,bg=colour234,nobold]⮀"
|