##################################
## DEFAULT CONFIG
set-option -g history-limit 12000

# Vim key-bindings 
set-window-option -g mode-keys vi
set -g mode-keys vi

# Reload tmuxderc configs on the fly
bind r source-file ~/.tmuxderc\; display "reloaded config file."
setw -g clock-mode-colour red

# Uma's configs
# Reset binds to resemble screen's Ctrl-A
unbind C-b
set -g prefix C-a
bind a send-prefix

# bind splitting panes by | and -
bind | split-window -h
bind - split-window -v

# smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"

# Render powerline colors in VimdDE
set -g default-terminal "screen-256color"

# Initialize theme
source-file "/usr/share/tmuxde/plugins/tmux-themepack/powerline/double/orange.tmuxtheme"

