Add tmux config

This commit is contained in:
2023-09-27 11:18:15 -04:00
parent 8bcb51578a
commit 0ea8874235
2 changed files with 352 additions and 234 deletions

67
.tmux.conf Normal file
View File

@@ -0,0 +1,67 @@
unbind -a
set -g default-terminal tmux
set-option -sa terminal-features ',xterm:RGB'
set-window-option -g mode-keys vi
# bind to C-a
set-option -g prefix C-a
bind-key C-a send-prefix
# switch panels
# switch panes using Alt-arrow without prefix
#bind-key -T prefix C-a switch-client -T prefix_ca
bind-key -T prefix c new-window
bind-key -T prefix h previous-window
bind-key -T prefix l next-window
bind-key -T prefix 0 select-window -t :0
bind-key -T prefix 1 select-window -t :1
bind-key -T prefix 2 select-window -t :2
bind-key -T prefix 3 select-window -t :3
bind-key -T prefix 4 select-window -t :4
bind-key -T prefix 5 select-window -t :5
bind-key -T prefix 6 select-window -t :6
bind-key -T prefix 7 select-window -t :7
bind-key -T prefix 8 select-window -t :8
bind-key -T prefix 9 select-window -t :9
# vi keybindings
bind-key -T prefix '[' copy-mode
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
bind-key -T prefix p paste-buffer
#bind-key -T prefix S-h swap-window -t -1
#bind-key -T prefix S-l swap-window -t +1
# other
# loud or quiet?
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
# modes
setw -g clock-mode-colour colour5
setw -g mode-style 'fg=colour1 bg=colour18 bold'
# panes
set -g pane-border-style 'fg=colour19 bg=colour0'
set -g pane-active-border-style 'bg=colour0 fg=colour9'
# statusbar
set -g status-position bottom
set -g status-justify left
set -g status-style 'bg=colour18 fg=colour137 dim'
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
setw -g window-status-style 'fg=colour9 bg=colour18'
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
# messages
set -g message-style 'fg=colour232 bg=colour16 bold'