Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
123 lines (95 sloc) 3.03 KB
# remap prefix to Control + a
unbind C-b
set -g prefix C-a
#bind C-a send-prefix
bind-key a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# colors
set -g default-terminal "screen-256color"
# title
set -g set-titles on
set -g set-titles-string '#T'
set -g status-justify centre
# start window numbering at 1 for easier switching
set -g base-index 1
setw -g pane-base-index 1
# status bar settings
set -g status-bg black
set -g status-fg green
set -g status-left '#h:[#S]'
set -g status-left-length 50
set -g status-right-length 50
set -g status-right "⚡ #(~/bin/battery Discharging; ~/bin/battery Charging) %H:%M %d-%h-%Y"
setw -g window-status-current-format "|#I:#W|"
setw -g window-status-current-fg colour166
setw -g window-status-current-bg black
set-window-option -g automatic-rename off
# toggle the status bar
bind b set -g status\; refresh-client -S
# border coloring for panes
set-option -g pane-active-border-fg red
# listen to alerts from all windows
set -g bell-action any
setw -g window-status-bell-bg white
setw -g window-status-bell-fg red
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
bind p previous-window
# screen like window toggling
bind Tab last-window
bind Escape copy-mode
unbind [ # free the weird binding
set-window-option -g mode-keys vi # switch to vi bindings
bind Escape copy-mode # ctrl-a ESC put your pane in a kind of vi normal mode
unbind p # free another weird binding
bind p paste-buffer # paste with crtl-a p
# rebind pane tiling
bind V split-window -h
bind H split-window
# shortcuts for breaking and joining panes
bind ^j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind ^s command-prompt -p "send pane to:" "join-pane -t '%%'"
bind ^b break-pane
# bind fast session switching
unbind S
bind S command-prompt "attach-session -d -t %1"
# vim bindings
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# buffer
bind Space choose-buffer
# bind resize commands to keys
bind = resize-pane -D 5
bind + resize-pane -U 5
bind < resize-pane -L 5
bind > resize-pane -R 5
### COLOUR (Solarized light)
# default statusbar colors
set-option -g status-bg white #base2
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightyellow #base00
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg white #base2
set-option -g pane-active-border-fg red #base1
# message text
set-option -g message-bg white #base2
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green