2024-04-19 23:22:17 +02:00
|
|
|
# run `tmux list-keys` to get all current key mappings
|
|
|
|
|
2023-04-01 22:20:34 +02:00
|
|
|
unbind-key '"'
|
|
|
|
unbind-key %
|
|
|
|
|
|
|
|
# Status bar colors
|
2024-04-20 00:45:46 +02:00
|
|
|
set-option -g status-style "bg=white,fg=black"
|
2023-04-01 22:20:34 +02:00
|
|
|
|
|
|
|
# Default window title colors
|
|
|
|
set-window-option -g window-status-style "fg=colour244" # base0
|
|
|
|
|
|
|
|
# Active window title colors
|
|
|
|
set-window-option -g window-status-current-style "fg=colour166,bright" # orange
|
|
|
|
|
|
|
|
# Pane border
|
2024-04-20 00:45:46 +02:00
|
|
|
set-option -g pane-border-style "fg=colour250" # light grey
|
|
|
|
set-option -g pane-active-border-style "fg=colour238" # dark grey
|
2023-04-01 22:20:34 +02:00
|
|
|
|
|
|
|
# Message color
|
2024-04-20 00:45:46 +02:00
|
|
|
set-option -g message-style "bg=white,fg=colour166" # white,orange
|
2023-04-01 22:20:34 +02:00
|
|
|
|
|
|
|
# Pane number display
|
|
|
|
set-option -g display-panes-active-colour colour33 # blue
|
|
|
|
set-option -g display-panes-colour colour166 # orange
|
|
|
|
|
2023-04-07 23:41:47 +02:00
|
|
|
set-option -g status-interval 5
|
2023-04-01 22:20:34 +02:00
|
|
|
set-option -g status-justify centre # center align window list
|
|
|
|
set-option -g status-left-length 140
|
|
|
|
set-option -g status-right-length 140
|
|
|
|
|
|
|
|
# Activity monitoring
|
|
|
|
set-window-option -g monitor-activity on
|
2023-05-07 17:47:33 +02:00
|
|
|
set-option -g visual-activity off
|
2023-04-01 22:20:34 +02:00
|
|
|
|
|
|
|
# Horizontal and vertical split
|
|
|
|
bind-key b split-window -h -c "#{pane_current_path}"
|
|
|
|
bind-key v split-window -c "#{pane_current_path}"
|
|
|
|
|
|
|
|
# New window
|
|
|
|
bind-key c new-window -c "#{pane_current_path}"
|
|
|
|
|
|
|
|
# Window traversal
|
|
|
|
bind-key C-h previous-window
|
|
|
|
bind-key C-t next-window
|
|
|
|
|
|
|
|
# Pane traversal
|
|
|
|
bind-key d select-pane -L
|
|
|
|
bind-key h select-pane -D
|
|
|
|
bind-key t select-pane -U
|
|
|
|
bind-key n select-pane -R
|
|
|
|
|
|
|
|
# Horizontal pane resize
|
|
|
|
bind-key s resize-pane -R 5
|
|
|
|
bind-key m resize-pane -L 5
|
|
|
|
|
|
|
|
# Reload config
|
|
|
|
bind-key C-r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..."
|
|
|
|
|
|
|
|
# Auto window rename
|
|
|
|
set-window-option -g automatic-rename
|
|
|
|
|
|
|
|
# Vi copypaste mode
|
|
|
|
set-option -g mode-keys vi
|
2024-04-19 23:22:17 +02:00
|
|
|
# selection & copy
|
2023-04-01 22:20:34 +02:00
|
|
|
bind-key -Tcopy-mode-vi v send -X begin-selection
|
|
|
|
bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel
|
2024-04-19 23:22:17 +02:00
|
|
|
# movement
|
|
|
|
bind-key -Tcopy-mode-vi d send -X cursor-left
|
|
|
|
bind-key -Tcopy-mode-vi h send -X cursor-down
|
|
|
|
bind-key -Tcopy-mode-vi t send -X cursor-up
|
|
|
|
bind-key -Tcopy-mode-vi n send -X cursor-right
|
|
|
|
# scrolling
|
|
|
|
bind-key -Tcopy-mode-vi C-e send -X halfpage-down
|
|
|
|
bind-key -Tcopy-mode-vi C-u send -X halfpage-up
|
|
|
|
# search
|
|
|
|
bind-key -Tcopy-mode-vi l send -X search-again
|
|
|
|
bind-key -Tcopy-mode-vi L send -X search-reverse
|
2023-04-01 22:20:34 +02:00
|
|
|
|
2023-10-06 18:36:57 +02:00
|
|
|
# Detach client
|
|
|
|
bind-key C-d detach-client
|
|
|
|
|
2023-04-01 22:20:34 +02:00
|
|
|
set-option -g focus-events on
|
|
|
|
|
2024-04-22 11:40:01 +02:00
|
|
|
set-option -sa terminal-features ',foot*:Tc'
|