set -g prefix C-g setw -g monitor-activity off # needed for e.g. mutt bind C-g send-prefix #set -g set-titles on set -g status-position top set -g status-keys vi set -g mode-keys vi set -g base-index 1 set -g pane-base-index 1 set -g focus-events on #set -g allow-rename off #set-option -g allow-rename off setw -g automatic-rename off set -g automatic-rename off setw -g allow-rename off set -g allow-rename off set history-file ~/.tmux_ssh/.history set -g history-limit 100000 set -s set-clipboard on set -g display-time 3000 set -g display-panes-time 3000 #set -g pane-border-status top setw -g window-status-current-style bg=colour240,fg=colour250 setw -g window-status-separator "|" set -g status-bg colour235 set -g status-fg colour245 setw -g pane-border-style fg=colour235 setw -g pane-active-border-style fg=colour240 set -g window-status-format " #I #{p15:pane_title} #{p2:window_flags}" setw -g automatic-rename-format " #I #{p15:pane_title} #{p2:window_flags}" set -g window-status-current-format " #I #{p15:pane_title} #{p2:window_flags}" set -g pane-border-format " #P: #{s/ //:pane_title} " set -g renumber-windows on set -g status-right-length 0 ############################################################## # I prefer not to have a status for my tabbed term set -g status-right '| #(test `apm -b` -lt 4 && echo "`apm -l`%% `test $(apm -m) != unknown && printf "%%02dh %%02dm \\n" "$(($(apm -m)/60)) $(($(apm -m)%%60))"`| ")%H:%M' set -g status-right-length 0 set -g status-left-length 0 set -g status-left "" # some settings for "navigation" bind -n C-PageUp copy-mode unbind -n C-Left unbind -n C-Right bind -n C-Left select-window -t :- bind -n C-Right select-window -t :+ # I prefer a tiled layout and easy joining of current active pane via windows' # index bind F1 join-pane -s 1.\; select-layout tiled bind F2 join-pane -s 2.\; select-layout tiled bind F3 join-pane -s 3.\; select-layout tiled bind F4 join-pane -s 4.\; select-layout tiled bind F5 join-pane -s 5.\; select-layout tiled bind F6 join-pane -s 6.\; select-layout tiled bind F7 join-pane -s 7.\; select-layout tiled bind F8 join-pane -s 8.\; select-layout tiled bind F9 join-pane -s 9.\; select-layout tiled bind -n S-Down select-pane -D bind -n S-Up select-pane -U bind -n S-Left select-pane -L bind -n S-Right select-pane -R bind-key -n C-S-Left "swap-window -t -1; select-window -t -1" bind-key -n C-S-Right "swap-window -t +1; select-window -t +1" bind p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer" bind C-v run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer" bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'