Source

configurations / .tmux.conf

Full commit
#---------------------------------------------------------------------------------------------------
# KEYBINDINGS
#---------------------------------------------------------------------------------------------------
set-option -g status-keys vi
set-option -gw mode-keys vi

#unbind-key -a # Isn't implemented yet (if it ever will be)
unbind-key C-a
unbind-key C-b
unbind-key Left
unbind-key Down
unbind-key Up
unbind-key Right
unbind-key C-Left
unbind-key C-Down
unbind-key C-Up
unbind-key C-Right
unbind-key M-Left
unbind-key M-Down
unbind-key M-Up
unbind-key M-Right
unbind-key PPage
unbind-key "~"
unbind-key %
unbind-key &
unbind-key ,
unbind-key .
unbind-key !
unbind-key "#"
unbind-key [
unbind-key ]
unbind-key {
unbind-key }
unbind-key (
unbind-key )
unbind-key '"'
unbind-key "'"
unbind-key M-1
unbind-key M-2
unbind-key M-3
unbind-key M-4
unbind-key M-5
unbind-key M-6
unbind-key M-7
unbind-key M-8
unbind-key M-9
unbind-key M-0
unbind-key a
unbind-key b
unbind-key c
unbind-key d
unbind-key e
unbind-key f
unbind-key g
unbind-key h
unbind-key i
unbind-key j
unbind-key k
unbind-key l
unbind-key m
unbind-key n
unbind-key o
unbind-key p
unbind-key q
unbind-key r
unbind-key s
unbind-key t
unbind-key u
unbind-key v
unbind-key w
unbind-key x
unbind-key y
unbind-key z
unbind-key A
unbind-key B
unbind-key C
unbind-key D
unbind-key E
unbind-key F
unbind-key G
unbind-key H
unbind-key I
unbind-key J
unbind-key K
unbind-key L
unbind-key M
unbind-key N
unbind-key O
unbind-key P
unbind-key Q
unbind-key R
unbind-key S
unbind-key T
unbind-key U
unbind-key V
unbind-key W
unbind-key X
unbind-key Y
unbind-key Z
unbind-key C-a
unbind-key C-b
unbind-key C-c
unbind-key C-d
unbind-key C-e
unbind-key C-f
unbind-key C-g
unbind-key C-h
unbind-key C-i
unbind-key C-j
unbind-key C-k
unbind-key C-l
unbind-key C-m
unbind-key C-n
unbind-key C-o
unbind-key C-p
unbind-key C-q
unbind-key C-r
unbind-key C-s
unbind-key C-t
unbind-key C-u
unbind-key C-v
unbind-key C-w
unbind-key C-x
unbind-key C-y
unbind-key C-z
unbind-key C-A
unbind-key C-B
unbind-key C-C
unbind-key C-D
unbind-key C-E
unbind-key C-F
unbind-key C-G
unbind-key C-H
unbind-key C-I
unbind-key C-J
unbind-key C-K
unbind-key C-L
unbind-key C-M
unbind-key C-N
unbind-key C-O
unbind-key C-P
unbind-key C-Q
unbind-key C-R
unbind-key C-S
unbind-key C-T
unbind-key C-U
unbind-key C-V
unbind-key C-W
unbind-key C-X
unbind-key C-Y
unbind-key C-Z
unbind-key M-a
unbind-key M-b
unbind-key M-c
unbind-key M-d
unbind-key M-e
unbind-key M-f
unbind-key M-g
unbind-key M-h
unbind-key M-i
unbind-key M-j
unbind-key M-k
unbind-key M-l
unbind-key M-m
unbind-key M-n
unbind-key M-o
unbind-key M-p
unbind-key M-q
unbind-key M-r
unbind-key M-s
unbind-key M-t
unbind-key M-u
unbind-key M-v
unbind-key M-w
unbind-key M-x
unbind-key M-y
unbind-key M-z
unbind-key M-A
unbind-key M-B
unbind-key M-C
unbind-key M-D
unbind-key M-E
unbind-key M-F
unbind-key M-G
unbind-key M-H
unbind-key M-I
unbind-key M-J
unbind-key M-K
unbind-key M-L
unbind-key M-M
unbind-key M-N
unbind-key M-O
unbind-key M-P
unbind-key M-Q
unbind-key M-R
unbind-key M-S
unbind-key M-T
unbind-key M-U
unbind-key M-V
unbind-key M-W
unbind-key M-X
unbind-key M-Y
unbind-key M-Z

# C-a for prefix
set-option -g prefix C-a 
bind-key a      send-prefix

bind-key c		new-window
bind-key s		split-window -h
bind-key v		split-window -v
bind-key w      kill-window
bind-key d		detach-client
bind-key q      confirm-before kill-session
bind-key n		previous-window
#bind-key e
#bind-key i
bind-key o		next-window
bind-key <      swap-window -t :-
bind-key >      swap-window -t :+
bind-key r      command-prompt 'rename-window %%'
bind-key .      source-file ~/.tmux.conf; display-message "~/.tmux.conf is reloaded"

# Prompt mode
bind-key :		command-prompt

# Copy mode
bind-key Escape copy-mode
bind-key -t vi-copy n cursor-left
bind-key -t vi-copy e cursor-down
bind-key -t vi-copy i cursor-up
bind-key -t vi-copy o cursor-right
bind-key -t vi-copy C-n start-of-line
bind-key -t vi-copy C-e page-down
bind-key -t vi-copy C-i page-up
bind-key -t vi-copy C-o end-of-line

#---------------------------------------------------------------------------------------------------
# STATUSBAR
#---------------------------------------------------------------------------------------------------
#set-option -g status-position top
set-option -g status-utf8 on
set-option -g status-justify left
set-option -g status-bg colour016
set-option -g status-fg colour004

set-option -g status-left ''
set-option -g status-right '#[fg=7]#(hostname -s)#[fg=4]#(uptime | rev | cut -d : -f 1 | rev) #[default] '

set-option -g status-right-length 60
set-option -g status-left-length 60

set-window-option -g window-status-bg colour016
set-window-option -g window-status-fg colour004
set-window-option -g window-status-format ' #W '

# highlight active window
set-window-option -g window-status-current-bg colour004
set-window-option -g window-status-current-fg colour015
set-window-option -g window-status-current-format ' #W '

# highlight alert window
#set-window-option -g window-status-alert-bg colour006
#set-window-option -g window-status-alert-fg colour255
#set-window-option -g window-status-alert-attr bold

# set window notifications
set-option -g visual-activity off
set-option -g visual-content off
set-window-option -g monitor-activity off
#set-window-option -g monitor-content off
set-window-option -g automatic-rename on

# enable mouse
set-option -g mouse-select-pane on
set-window-option -g mode-keys vi
set-window-option -g mode-mouse on
#set-option -g status-keys vi
#set-option -g history-limit 4096

# pane border and colors
set-option -g pane-active-border-fg colour008
set-option -g pane-border-fg colour016

#---------------------------------------------------------------------------------------------------
# AUTOLOAD WINDOWS ON INITIALIZATION
#---------------------------------------------------------------------------------------------------
new -s tmux
#neww -n irc irssi
#neww -n top top
#neww -n who whowatch
selectw -t 0