set -g base-index 1 set -g pane-base-index 1 set -g escape-time 10 set -g repeat-time 300 set -g history-limit 4096 set -g focus-events on set -g renumber-windows on setw -g aggressive-resize on set -g default-terminal "screen-256color" set -ga terminal-overrides ",screen-256color:Tc" #set -g mouse on set -g set-titles on set -g set-titles-string '#h - #S' set -g monitor-activity on set -g visual-activity off set -g status-interval 5 set -g status-justify left set -g status-position top set -g status-left-length 50 set -g status-right-length 30 set -g status-style "fg=colour8,bg=colour18" set -g status-left "#(bash ~/.tmux/status)" set -g status-right "#[fg=colour19]#[bg=colour19,fg=colour7] %a %m.%d %R #[fg=colour8]#{?client_prefix,#[bg=colour8]💛,💜}" set -g window-status-format "#{?#W,#W,#I}#{?window_zoomed_flag,+,} #[default,fg=colour19]" set -g window-status-current-format "#{?#W,#W,#I}#{?window_zoomed_flag,+,} #[nobold,fg=colour19]" set -g window-status-current-style "fg=colour4,bold" set -g window-status-activity-style "fg=colour20" set -g window-status-bell-style "fg=colour20" #█ ^Vue0b0 set -g automatic-rename on set -g automatic-rename-format "" set -g message-style "fg=white,bg=colour19" set -g pane-border-style "fg=colour18,bg=colour18" set -g pane-active-border-style "fg=colour19,bg=colour19" unbind C-b set -g prefix C-a bind C-a send-prefix bind C-d detach set -g status-keys vi set -g mode-keys vi bind -T copy-mode-vi 'v' send -X begin-selection bind -T copy-mode-vi 'y' send -X copy-selection-and-cancel bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" #unbind -T copy-mode-vi MouseDragEnd1Pane #bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i -sel clipboard >/dev/null" # ## Mac OSX clipboard #if -b 'command -v reattach-to-user-namespace > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | reattach-to-user-namespace pbcopy"' ## X11 clipboard #if -b 'command -v xsel > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | xsel -i -b"' #if -b '! command -v xsel > /dev/null 2>&1 && command -v xclip > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | xclip -i -selection clipboard >/dev/null 2>&1"' ## Windows clipboard #if -b 'command -v clip.exe > /dev/null 2>&1' 'bind y run -b "tmux save-buffer - | clip.exe"' #if -b '[ -c /dev/clipboard ]' 'bind y run -b "tmux save-buffer - > /dev/clipboard"' unbind E bind e setw synchronize-panes on bind E setw synchronize-panes off unbind l bind h selectp -L bind j selectp -D bind k selectp -U bind l selectp -R bind -r C-h resizep -L bind -r C-j resizep -D bind -r C-k resizep -U bind -r C-l resizep -R bind n if "test #I = #{session_windows}" "neww" "next" unbind % unbind "'" unbind '"' bind % command-prompt -p index "select-window -t ':%%'" bind '"' splitw -hc "#{pane_current_path}" bind "'" splitw -c "#{pane_current_path}" bind Tab last # most recent window bind -r "<" swapw -d -t -1 bind -r ">" swapw -d -t +1 bind T run "bash ~/.tmux/status toggle-task" #bind -T root F12 \ # set prefix None \;\ # set key-table off \;\ # set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\ # set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\ # set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\ # if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ # refresh-client -S \;\ # #bind -T off F12 \ # set -u prefix \;\ # set -u key-table \;\ # set -u status-style \;\ # set -u window-status-current-style \;\ # set -u window-status-current-format \;\ # refresh-client -S # #wg_is_keys_off="#[fg=$color_light,bg=$color_window_off_indicator]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[default]" #set -g status-right "$wg_is_keys_off #{sysstat_cpu} | #{sysstat_mem} | #{sysstat_loadavg} | $wg_user_host" bind r source ~/.tmux.conf if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local'