My Tmux configuration

This Tmux configuration has been inspired by several dotfiles found on the Internet (mainly these two : here and here)

It consists in adding few options, defining new key bindings and customizing the theme and coloring. In my opinion, the comments are explicit enough to understand what each line does, so there's no need for long speeches about it here ;-)

Please find below the content of my .tmux.conf file:
note: the following config requires tmux 2.1 at least


# making navigation between windows easier (0 is far from 1)
set -g base-index 1

# prefix - add a new prefix but keep the default one
set-option -g prefix C-b  
set-option -g prefix2 C-q

# enabling mouse
set -g mouse on

# VI mode
setw -g mode-keys vi  
set -g status-keys vi

# I want to be able to name my windows
set-window-option -g automatic-rename off  
set-option -g set-titles off

# monitor windows activity
setw -g monitor-activity on  
set -g visual-activity on

# history
set -g history-limit 10000

# No delay for escape key press
set -sg escape-time 0


# spliting window
bind-key v split-window -h  
bind-key -n M-v split-window -h  
bind-key s split-window -v  
bind-key -n M-s split-window -v

# resizing pane
bind-key J resize-pane -D 5  
bind-key K resize-pane -U 5  
bind-key H resize-pane -L 5  
bind-key L resize-pane -R 5

# fine resizing
bind-key M-j resize-pane -D  
bind-key M-k resize-pane -U  
bind-key M-h resize-pane -L  
bind-key M-l resize-pane -R

# pane selection (VIM mode style)
bind h select-pane -L  
bind j select-pane -D  
bind k select-pane -U  
bind l select-pane -R

# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L  
bind -n M-j select-pane -D  
bind -n M-k select-pane -U  
bind -n M-l select-pane -R

# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L  
bind -n M-Right select-pane -R  
bind -n M-Up select-pane -U  
bind -n M-Down select-pane -D

# Shift arrow to switch windows
bind -n S-Left  previous-window  
bind -n S-Right next-window


# statusbar
set -g status-interval 1  
set -g status-justify centre  
set -g status-left-length 30  
set -g status-left '#[fg=colour242] #H (#S) #[default]'  
set -g status-right '#[fg=colour242] %d/%m - %H:%M:%S '  
set -g status-fg white  
set -g status-bg default  
set -g status-attr bright

# current window
set -g window-status-current-bg blue  
set -g window-status-current-fg white  
set -g window-status-current-attr bold

# messages
set -g message-fg black  
set -g message-bg yellow  
set -g message-command-fg blue  
set -g message-command-bg black

# pane
set -g pane-border-bg colour235  
set -g pane-border-fg colour242  
set -g pane-active-border-bg colour235  
set -g pane-active-border-fg colour242  

This configuration can also be found on my Github.

Screenshot :