bind r source-file ~/.config/tmux/tmux.conf
set-option -g prefix `
set-option -g mode-keys vi
bind-key ` send-prefix
bind v split-window -h
bind h split-window -v
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
bind -n M-o next-window
bind -n M-i previous-window
bind -n M-] swap-window -t +1
bind -n M-[ swap-window -t -1
set -g mouse on
set -g mouse on
set -g mouse on
set -g default-terminal "tmux-256color"
set -s escape-time 0
set -g status off
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle

unbind '"'
unbind %
unbind C-b
unbind p
unbind n

######################
### DESIGN CHANGES ###
######################
# {{{
# 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' 
# }}}

#Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'mattdavis90/base16-tmux'
set -g @colors-base16 'ocean'

#Final
run -b '~/.config/tmux/plugins/tpm/tpm'
