cat ~/.tmux.conf
set-option -g prefix ^a
# large history
set-option -g history-limit 10000
setw -g mode-mouse on
set-option -g mouse-select-pane on
# swap on C-a C-a
bind-key C-a last-window
bind-key k confirm-before kill-window
bind-key r source-file ~/.tmux.conf
bind-key v split-window -h #similar to vim's vsplit
bind-key h split-window
set-option -g default-terminal "screen-256color"
# status bar customisation
set-option -g status-bg blue
set-option -g status-fg green
# highlight status bar on activity
set -g visual-activity on
# change foreground-background for the current window
setw -g window-status-current-attr reverse
setw -g monitor-activity on
# for vim
setw -g xterm-keys on
# load average, battery, and date + time
set -g status-right "#[fg=magenta] #(cat /proc/loadavg|awk '{print $3 \" \" $2 \" \" $3}') #(acpi|awk '{print $4;}') #[fg=cyan]%d-%m #[fg=green]%H:%M"
# put the programs to start by default here
# one $SHELL is always started at 0
# focus on first window
select-window -t 0
set status-left-attr reverse
new