44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
set -g default-terminal "tmux-256color"
|
|
set -ga terminal-overrides ",xterm-kitty:Tc"
|
|
setw -g aggressive-resize on
|
|
set -g set-titles on
|
|
set -g set-titles-string "#T"
|
|
bind R source-file ~/.tmux.conf \; display-message " Config reloaded..."
|
|
set -g mouse on
|
|
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
|
|
setw -g xterm-keys on
|
|
set -g base-index 1
|
|
set -gw pane-base-index 1
|
|
set -g renumber-windows on
|
|
|
|
setw -g monitor-activity off
|
|
set -g visual-activity off
|
|
unbind C-b
|
|
set -g prefix C-q
|
|
bind C-q send-prefix
|
|
|
|
unbind [
|
|
bind Escape copy-mode
|
|
unbind p
|
|
bind p paste-buffer
|
|
|
|
set-window-option -g mode-keys vi
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
|
|
|
# Look
|
|
set -g status-bg colour18
|
|
set -g status-fg colour20
|
|
|
|
setw -g window-status-current-format '#[fg=colour18,bg=colour3]#[fg=colour1,bg=colour3] #I #[fg=colour19]#W #[fg=colour19]#F #[bg=colour18,fg=colour3]'
|
|
setw -g window-status-format ' #I #W #F '
|
|
set -g status-left "#[fg=colour19,bg=colour3] #[fg=colour3,bg=colour234] "
|
|
set -g status-right "#[fg=colour19,bg=colour234]#[fg=colour21,bg=colour19] %H:%M #[fg=colour3,bg=colour19]#[fg=colour0,bg=colour3,bold] #H "
|
|
|
|
# List of my plugins
|
|
|
|
|
|
if "test ! -d ~/.tmux/plugins/tpm" \
|
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'"
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|