#############################################################################
# ~/.tmux.conf: Customized tmux.conf                                        #
# Copyright (C) 2010  Sol Jerome                                            #
#                                                                           #
# This is free software; you can redistribute it and/or modify it under     #
# the terms of the GNU General Public License as published by the Free      #
# Software Foundation; either version 2 of the License, or (at your option) #
# any later version.                                                        #
#                                                                           #
# This is distributed in the hope that it will be useful, but WITHOUT       #
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     #
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License     #
# for more details.                                                         #
#                                                                           #
# You should have received a copy of the GNU General Public License along   #
# with this program; if not, write to the Free Software Foundation, Inc.,   #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.               #
#############################################################################

## terminal settings
set -g default-terminal "screen"

# status line settings
set -g status-justify centre
set -g status-bg black
set -g status-fg white
setw -g window-status-current-attr reverse,underscore
set -g status-interval 1
set -g status-left-length 40
set -g status-right-length 40
set -g status-left "[#[fg=blue,bold]#H#[default]]"
set -g status-right "[#[fg=red,bold]#(tmux-getload.sh)#[default]][#[fg=white,bright]%m/%d/%y #[fg=blue,bold]%H:%M:%S#[default]]"

## keybindings
# use ^a like screen
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind ^[ copy-mode
bind [ copy-mode

# use vi keybindings
set-window-option -g mode-keys vi

# ^A last window
unbind ^A
bind ^A last-window

# ctrl plus left and right arrows switch
bind -n C-Left prev
bind -n C-Right next

## splits
# vertical
bind | split-window -h
# horizontal
bind S split-window -v

## tmux window titles for X
set -g set-titles on
set -g set-titles-string '#W [#S:#I.#P]'

# quick view of processes
bind '~' split-window "exec htop"

# turn on notifications
#setw -g monitor-activity on
set -g bell-action any
set -g visual-bell off
# vim:ft=tmux:
