76 lines
2.0 KiB
Bash
76 lines
2.0 KiB
Bash
# easy reload config
|
|
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
|
|
|
|
# set window split
|
|
bind-key v split-window -h
|
|
bind-key b split-window
|
|
|
|
# default window title colors
|
|
set-window-option -g window-status-style fg=colour244,bg=default,dim
|
|
|
|
# active window title colors
|
|
set-window-option -g window-status-current-style fg=color167,bg=default,bright
|
|
|
|
# pane border
|
|
set-option -g pane-border-style fg=colour236
|
|
set-option -g pane-active-border-style fg=color167 # orange
|
|
|
|
# message text
|
|
set-option -g message-style bg=colour235,fg=color167
|
|
|
|
# pane number display
|
|
set-option -g display-panes-active-colour blue
|
|
set-option -g display-panes-colour color167
|
|
|
|
# clock
|
|
set-window-option -g clock-mode-colour color167
|
|
|
|
# Leader Key
|
|
set -g prefix C-a
|
|
bind-key C-a last-window
|
|
|
|
# Start index at 1
|
|
set -g base-index 1
|
|
|
|
# Allows for faster key repetition
|
|
set -s escape-time 50
|
|
|
|
# Rather than constraining window size to the maximum size of any client
|
|
# connected to the *session*, constrain window size to the maximum size of any
|
|
# client connected to *that window*. Much more reasonable.
|
|
setw -g aggressive-resize on
|
|
|
|
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
|
# another TMUX session
|
|
bind-key a send-prefix
|
|
|
|
# Status Bar
|
|
set-option -g status-position top
|
|
set-option -g status-style "bg=default,fg=white"
|
|
set-option -g status-left "#[dim]S#S W#{window_index}#[default]"
|
|
set-option -g status-right '%d#[dim]/#[default]%m#[dim]/#[default]%Y %I:%M#[dim]%P#[default]' # #[fg=white] to switch colors
|
|
set -g status-interval 1
|
|
set -g status-justify centre # center align window list
|
|
set -g status-left-length 14
|
|
set -g status-right-length 100
|
|
|
|
# hjkl pane traversal
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
|
|
|
|
# auto window rename
|
|
set-window-option -g automatic-rename
|
|
|
|
# Vi copypaste mode
|
|
set-window-option -g mode-keys vi
|
|
|
|
# highlight color
|
|
set -g mode-style "fg=black,bg=color167"
|
|
|
|
# Mouse support
|
|
set -g mouse on
|