set-option -g mode-mouse on
set-window-option -g mode-keys vi
bind Escape copy-mode
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
set -g utf8 on
set -g status-utf8 on
set-option -g prefix C-_
unbind-key C-b
bind-key C-_ send-prefix
unbind %
bind | split-window -h
bind - split-window -v
set -s escape-time 0
set -g display-time 4000
set-option -g status-keys vi
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-utf8 on
set-option -g default-terminal "screen-256color"
set-window-option -g xterm-keys on
set-option -g history-limit 100000
unbind-key k
unbind-key j
unbind-key h
unbind-key l
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
run-shell "powerline-daemon -q"
source ~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
##### COLOUR (Solarized dark)
## 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 red #base02
set-option -g pane-active-border-fg brightgreen #base01
set-option -g pane-active-border-bg 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
# List of plugins
# Supports `github_username/repo` or full git URLs
set -g @tpm_plugins " \
tmux-plugins/tpm \
tmux-plugins/tmux-open \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-sessionist \
tmux-plugins/tmux-sidebar \
tmux-plugins/tmux-example-plugin \
tmux-plugins/tmux-logging \
"
# Other examples:
# github_username/plugin_name \
# git@github.com/user/plugin \
# git@bitbucket.com/user/plugin \
# initializes TMUX plugin manager
run-shell ~/.tmux/plugins/tpm/tpm