# adding C-a support as in screen set -g prefix C-a bind C-a send-prefix unbind C-b # use UTF-8 #set -g utf8 #set-window-option -g utf8 on # time display messages in ms set -g display-time 2000 # start windows with 1 set -g base-index 1 # reload config file bind R source-file ~/.tmux.conf \; display "config reloaded" # show if activity appears in an window set -g monitor-activity on set -g visual-activity on # highlight current window working in set-window-option -g window-status-current-style bg=yellow # use same keys as in vim setw -g mode-keys vi # default terminal for vim set -g default-terminal "screen-256color" # split panes bind / split-window -h bind - split-window -v # kill window bind k kill-window # nice pane divider set -g pane-border-style fg=white,bg=black set -g pane-active-border-style fg=red,bg=black ### STATUSBAR # default statusbar colors set -g status-style fg=black,bg=white,dim # current or active window in status bar set-window-option -g window-status-current-style fg=red,bg=black set-window-option -g window-status-current-format ' #W ' # inactive window in statusbar set-option -g status-justify centre set-window-option -g window-status-format ' #I #W ' # command/message line colors set -g message-style fg=white,bg=blue,dim # left side of status bar set -g status-left-length 40 set -g status-left ' [S:#S|W:#I|P:#P] [%Y-%m-%d %H:%M]' # right side of status bar set -g status-right-length 40 set -g status-right "[Host:#(hostname | cut -d. -f 1)] [CPU:#(mpstat 1 1 | grep 'Average' | awk '$12 ~ /[0-9.]+/ { print 100.0-$12 }')%%] " # enable mouse set -g mouse on