dotfiles/misc/tmux.conf

87 lines
2.3 KiB
Plaintext
Raw Normal View History

2011-12-30 10:10:35 +11:00
# Unbind unused default keys
unbind '#' # list-buffers
unbind = # choose-buffer
unbind - # delete-buffer
unbind % # split-pane -v
unbind '"' # split-pane -h
unbind q # display-panes
2011-11-08 06:29:17 +11:00
setw -g mode-keys vi
set -g default-terminal "screen-256color"
bind R source-file ~/.tmux.conf
2011-12-30 10:10:35 +11:00
bind \ confirm-before kill-server
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
# Mouse
setw -g mode-mouse on
set -g mouse-resize-pane
set -g mouse-select-pane
set -g mouse-select-window
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
# Copy/Pasting
bind [ copy-mode
bind ] paste-buffer -s \015
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
bind b list-buffers # list all paste buffers (default key is '#')
bind p choose-buffer # choose buffer to paste interactively (default key was '=')
bind x delete-buffer # delete the most recently copied buffer of text (default key was '-')
2011-11-08 06:29:17 +11:00
# new window
2011-12-30 10:10:35 +11:00
bind C-c new-window
bind c new-window
# Window/Pane management
# Options
set -g base-index 1
set -g set-titles on
setw -g automatic-rename on
# Splitting
bind _ split-window -v
bind | split-window -h
# Resizing
bind -r < resize-pane -L 3
bind -r > resize-pane -R 3
bind -r + resize-pane -U 1
bind -r - resize-pane -D 1
# Swapping panes
bind -r J swap-pane -D
bind -r K swap-pane -U
# Jumping to panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind b last-window # Jump to last active window
bind w display-panes # display visible indicator of each pane
2011-11-08 06:29:17 +11:00
# Statusbar settings
2011-12-30 10:10:35 +11:00
set -g status-keys vi
set -g display-time 2000 # How long messages are displayed for
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
# default statusbar colors
set-option -g status-utf8 on
set-option -g status-fg colour15
set-option -g status-bg black
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
setw -g window-status-fg colour15
setw -g window-status-bg black
setw -g window-status-attr none
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
setw -g window-status-current-fg black
setw -g window-status-current-bg colour15
setw -g window-status-current-attr bold
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
setw -g window-status-current-format '(#[fg=red]#I#[default] #W#F)'
setw -g window-status-format '(#[fg=yellow]#I#[default] #W#F)'
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
set-option -g status-left ' ❐ #[fg=red]#S#[default] ▐'
set-option -g status-right '▐ ⌚ #[fg=green]#(date "+%H:%M")#[default] ▐ #[fg=colour210]#(whoami)@#H#[default]'
2011-11-08 06:29:17 +11:00
2011-12-30 10:10:35 +11:00
set-option -g status-right-length 1000
set-option -g status-left-length 60