bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R

bind | split-window -h
bind - split-window -v

bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r H resize-pane -L 10
bind -r L resize-pane -R 10

set -g pane-border-fg white
set -g pane-active-border-fg cyan
set -g pane-active-border-bg cyan
set -g status-left "session: #S | window: #I | pane: #P"

set -g prefix C-a 
bind-key C-a last-window
set -g default-terminal "screen-256color"
new-session -n $HOST

# Colors {{{

set -g pane-border-fg colour8
set -g pane-active-border-fg colour7

set -g status-bg default
set -g status-fg colour7
set -g window-status-current-fg colour15

set -g message-bg default
set -g message-fg colour15

# }}}
# Statusline {{{

set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on

set -g status-left ''
set -g status-right '#{?client_prefix,#[fg=colour15 reverse],} #(echo $USER)@#H '

set -g status-justify right
set -g window-status-current-format '#I:#W '

# }}}

#### COLOUR (Solarized 256)

# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default

# default window title colors
set-window-option -g window-status-fg colour244 #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 colour166 #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 colour235 #base02
set-option -g pane-active-border-fg colour240 #base01

# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange

# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange

# clock
set-window-option -g clock-mode-colour colour64 #green

# bell
set-window-option -g window-status-bell-style fg=colour235,bg=colour160 #base02, red
