dotfiles/.tmux.conf

114 lines
3.4 KiB
Plaintext
Raw Normal View History

2019-01-30 08:12:45 +00:00
# prefix Control + T
2019-05-02 00:26:00 +00:00
#set-option -g prefix C-t
2018-02-05 18:25:14 +00:00
2019-01-30 08:12:45 +00:00
set-option -sg escape-time 9
2018-02-05 18:25:14 +00:00
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
2018-02-16 19:25:50 +00:00
#bind -n C-d detach
2018-02-05 18:25:14 +00:00
# Enable mouse mode (tmux 2.1 and above)
2019-05-02 00:26:00 +00:00
#set -g mouse on
2018-08-27 20:45:40 +00:00
bind-key -n -T copy-mode-vi Enter send-keys -X copy-pipe 'xclip -i -sel p -f | xclip -i -sel c'
bind-key -n -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe 'xclip -i -sel p -f | xclip -i -sel c'
2018-02-05 18:25:14 +00:00
2020-06-17 07:54:50 +00:00
# only this line might not be enough
set -g default-terminal "tmux-256color"
# Needs this line also to overrides the default color
set-option -ga terminal-overrides ",xterm-256color:Tc"
2018-02-05 18:25:14 +00:00
######################
### DESIGN CHANGES ###
######################
# panes
set -g pane-border-style fg=black
set -g pane-active-border-style fg=brightred
2018-02-05 18:25:14 +00:00
## Status bar design
# status line
set -g status-justify left
set -g status-style bg=default,fg=colour12
2018-05-19 17:39:36 +00:00
set -g status-interval 5
2018-02-05 18:25:14 +00:00
# messaging
set -g message-style bg=yellow,fg=black
set -g message-command-style bg=black,fg=blue
2018-02-05 18:25:14 +00:00
#window mode
setw -g mode-style bg=colour6,fg=colour0
2018-02-05 18:25:14 +00:00
# window status
setw -g window-status-format " #F#I:#W#F "
setw -g window-status-current-format " #F#I:#W#F "
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
setw -g window-status-current-style bg=colour0,fg=colour11,dim
setw -g window-status-style bg=green,fg=black,reverse
2018-02-05 18:25:14 +00:00
# Info on left (I don't have a session display for now)
set -g status-left ''
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
set -g default-terminal "screen-256color"
2018-02-05 18:25:14 +00:00
# The modes
setw -g clock-mode-colour colour135
setw -g mode-style fg=colour196,bg=colour238,bold
2018-02-05 18:25:14 +00:00
# The panes
set -g pane-border-style bg=colour235,fg=colour238
set -g pane-active-border-style bg=colour236,fg=colour51
2018-02-05 18:25:14 +00:00
# The statusbar
set-option -g status-position top
set -g status-style bg=colour234,fg=colour137,dim
2018-02-05 18:25:14 +00:00
set -g status-left ''
2020-07-24 09:17:57 +00:00
set -g status-right '#[fg=colour233,bold] #{load_full} #[fg=colour233,bg=colour245,bold] %H:%M '
2018-02-05 18:25:14 +00:00
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style bg=colour238,fg=colour81,bold
2018-02-05 18:25:14 +00:00
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-style bg=colour235,fg=colour138
#setw -g window-status-attr none
2018-02-05 18:25:14 +00:00
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-style bg=colour1,fg=colour255,bold
2018-02-05 18:25:14 +00:00
# The messages
set -g message-style bg=colour166,fg=colour232,bold
2018-02-05 18:25:14 +00:00
# List of plugins
2020-07-24 09:17:57 +00:00
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'jamesoff/tmux-loadavg'
2018-02-05 18:25:14 +00:00
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'
2019-01-11 20:25:02 +00:00
if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local'
2020-07-24 09:17:57 +00:00