set-option -g prefix C-space unbind-key C-b bind-key C-space last-window bind-key space send-prefix # resize to 80 columns bind-key F9 set-window-option force-width 80 bind-key F10 set-window-option force-width 0 # we might need ` at some point, allow switching # we can also send the prefix char with `-a bind-key F11 set-option -g prefix C-l bind-key F12 set-option -g prefix ` # 0 is too far from ` ;) #set -g base-index 1 set -g base-index 0 set-option -g default-terminal "screen-256color" set-option -g status-keys vi set-option -g bell-action any #set-option -g bell-on-alert on set-option -g set-titles on set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not) set-option -g visual-bell off setw -g mode-keys vi setw -g monitor-activity off bind e previous-window bind f next-window bind j select-pane -D bind k select-pane -U bind h select-pane -L bind l select-pane -R bind-key -r -T prefix C-j select-pane -D bind-key -r -T prefix C-k select-pane -U bind-key -r -T prefix C-h select-pane -L bind-key -r -T prefix C-l select-pane -R bind-key -r -T prefix M-k resize-pane -U 5 bind-key -r -T prefix M-j resize-pane -D 5 bind-key -r -T prefix M-h resize-pane -L 5 bind-key -r -T prefix M-l resize-pane -R 5 bind C-c new-window -c '#{pane_current_path}' bind '"' split-window -c '#{pane_current_path}' bind % split-window -h -c '#{pane_current_path}' bind C-u copy-mode -u bind-key -r M-h resize-pane -L bind-key -r M-j resize-pane -D bind-key -r M-k resize-pane -U bind-key -r M-l resize-pane -R set-option -g status-justify left set-option -g status-bg black set-option -g status-fg blue # set-option -g status-attr default set-option -g status-left-length 40 # set-option -g pane-active-border-fg cyan # set-option -g pane-active-border-bg default # set-option -g pane-border-fg blue # set-option -g pane-border-bg default # set-option -g message-fg red # set-option -g message-bg default # set-option -g message-attr bright #setw -g mode-bg black # #setw -g window-status-bg black # setw -g window-status-bg default # setw -g window-status-current-fg blue # setw -g window-status-current-attr bright # setw -g window-status-bell-attr bright # setw -g window-status-bell-fg green setw -g other-pane-height 15 set -g status-left '#[fg=red,nobright]#H#[fg=black,bright]:#S#[default] ' #set -g status-right '#[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]' #set -g status-right '| #[fg=blue,nobright]%Y-%m-%d #[fg=blue,bright]%H:%M#[default]' set -g status-right '' #set -g history-limit 409k set -g history-limit 40000 # `+r reloads the configuration, handy bind r source-file ~/.tmux.conf set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY DBUS_SESSION_BUS_ADDRESS DESKTOP_SESSION GNOME_KEYRING_PID GPG_AGENT_INFO" set -s escape-time 0