dotfiles/tmux/.tmux.conf

71 lines
2 KiB
Bash

# GNU Screen prefix
unbind C-b
set -g prefix C-a
# Open new-window in PWD
#bind c new-window -c "#{pane_current_path}"
# Vi shortcut for copying (frees shortcut for emacs)
set-window-option -g mode-keys vi
set-window-option -g xterm-keys on
# Last window
#bind-key C-a last-window
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Configuration for tmux-resurrect
set -g @resurrect-processes 'mutt journalctl emacs'
set -g @resurrect-strategy-vim 'session'
# statusbar --------------------------------------------------------------
set -g display-time 2000
# allow mouse mode
#set -g mouse-utf8 on # deprecated
set -g mouse on
# center align the window list
set -g status-justify centre
set -g status-right "("
set -g status-left ")"
#### COLOUR (Default dark (terminal chooses variant))
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'