# force a reload of the config file unbind r bind r source-file ~/.tmux.conf # start window numbering at 1 for easier switching set -g base-index 1 # colors set -g default-terminal "screen-256color" # unicode setw -g utf8 on set -g status-utf8 on # bah, C-B is ugly unbind C-b set -g prefix C-a bind C-a send-prefix # splitting panes bind v split-window -h bind s split-window -v # moving between panes bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # Pane resizing bind -r H resize-pane -L 5 bind -r J resize-pane -D 5 bind -r K resize-pane -U 5 bind -r L resize-pane -R 5 # Smart pane switching with awareness of vim splits bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys C-h) || tmux select-pane -L" bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys C-j) || tmux select-pane -D" bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys C-k) || tmux select-pane -U" bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys C-l) || tmux select-pane -R" bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|n?vim?)(diff)?$' && tmux send-keys 'C-\\') || tmux select-pane -l" # status bar config set -g status-left "#h:[#S]" set -g status-left-length 50 set -g status-right-length 50 #set -g status-right "⚡ #(~/bin/tmux-battery) [✉#(~/bin/imap_check.py)] %H:%M %d-%h-%Y" set -g status-right "%H:%M %d-%h-%Y" setw -g window-status-current-format "|#I:#W|" set-window-option -g automatic-rename off # listen to alerts from all windows set -g bell-action any # mouse support set -g mode-mouse on set -g mouse-resize-pane on set -g mouse-select-pane on set -g mouse-select-window on # This tmux statusbar config was created by tmuxline.vim # on Mon, 15 Dec 2014 set -g status-bg "colour234" set -g message-command-fg "colour231" set -g status-justify "left" set -g status-left-length "100" set -g status "on" set -g pane-active-border-fg "colour254" set -g message-bg "colour31" set -g status-right-length "100" set -g status-right-attr "none" set -g message-fg "colour231" set -g message-command-bg "colour31" set -g status-attr "none" set -g status-utf8 "on" set -g pane-border-fg "colour240" set -g status-left-attr "none" setw -g window-status-fg "colour250" setw -g window-status-attr "none" setw -g window-status-activity-bg "colour234" setw -g window-status-activity-attr "none" setw -g window-status-activity-fg "colour250" setw -g window-status-separator "" setw -g window-status-bg "colour234" set -g status-left "#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold,nounderscore,noitalics]>" set -g status-right "#[fg=colour236,bg=colour234,nobold,nounderscore,noitalics]<#[fg=colour247,bg=colour236] %Y-%m-%d < %H:%M #[fg=colour252,bg=colour236,nobold,nounderscore,noitalics]<#[fg=colour235,bg=colour252] #h " setw -g window-status-format "#[fg=colour244,bg=colour234] #I <#[fg=colour250,bg=colour234] #W " setw -g window-status-current-format "#[fg=colour234,bg=colour31,nobold,nounderscore,noitalics]>#[fg=colour117,bg=colour31] #I >#[fg=colour231,bg=colour31,bold] #W #[fg=colour31,bg=colour234,nobold,nounderscore,noitalics]>"