################### ### Key-binding ### ################### # scrollback buffer n lines set -g history-limit 100000 # Ctrl+b -> Ctrl+t set-option -g prefix C-t unbind-key C-b bind-key C-t send-prefix # split window unbind '"' bind - split-window -v unbind % bind \\ split-window -h # select pane bind k selectp -U # above (prefix k) bind j selectp -D # below (prefix j) bind h selectp -L # left (prefix h) bind l selectp -R # right (prefix l) # resize pane bind -r ^k resizep -U 10 # upward (prefix Ctrl+k) bind -r ^j resizep -D 10 # downward (prefix Ctrl+j) bind -r ^h resizep -L 10 # to the left (prefix Ctrl+h) bind -r ^l resizep -R 10 # to the right (prefix Ctrl+l) # swap pane # swap with the previous pane (prefix Ctrl+u) bind ^u swapp -U # swap with the next pane (prefix Ctrl+d) bind ^d swapp -D # misc # select the last pane (prefix e) bind e lastp # select the last window (prefix Ctrl+e) bind ^e last # kill pane (prefix q) bind q killp # kill window (prefix Ctrl+q) bind ^q killw # Reload the /etc/tmux.conf bind r source-file /etc/tmux.conf \; display "Configuration Reloaded!" ############## ### Design ### ############## # loud or quiet? #set-option -g visual-activity off #set-option -g visual-bell off #set-option -g visual-silence off #set-window-option -g monitor-activity off #set-option -g bell-action none # modes setw -g clock-mode-colour colour5 setw -g mode-style fg=colour1,bg=colour18,bold # panes set -g pane-border-style fg=colour250,bg=colour236 set -g pane-active-border-style fg=colour250,bg=colour250 # statusbar set -g status-position bottom set -g status-justify left set -g status-interval 1 set -g status-style fg=yellow,bg=black set -g status-left '' #set -g status-right '#[fg=colour233,bg=colour19,bold] %d/%m #[fg=colour233,bg=colour8,bold] %H:%M:%S ' set -g status-right-length 50 set -g status-left-length 20 #set inactive/active window styles set -g window-style 'fg=colour247,bg=colour236' set -g window-active-style 'fg=colour250,bg=black' setw -g window-status-current-style fg=colour1,bg=colour19,bold setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F ' setw -g window-status-style fg=colour9,bg=colour18,none setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' setw -g window-status-bell-style fg=colour255,bg=colour1,bold # messages set -g message-style fg=colour232,bg=colour16,bold #uptime,loadavg set -g status-right "#{prefix_highlight}#{net_speed}#[default]•#[fg=red]#(hostname)#[default]•#[fg=green]#(uptime|cut -d ' ' -f 2)#[default]•#[fg=green]#(cut -d ' ' -f 1,2 /proc/loadavg)#[default]" #set-option -g status-utf8 on #set-window-option -g utf8 on #set status-utf8 on #set utf8 on ############# ### Mouse ### ############# # Before tmux 2.1 #setw -g mouse-resize-pane on #setw -g mouse-select-pane on #setw -g mouse-select-window on #setw -g mode-mouse on # After tmux 2.1 set-option -g mouse on ############### ### Plugins ### ############### # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' # Other examples: # set -g @plugin 'github_username/plugin_name' # set -g @plugin 'git@github.com/user/plugin' # set -g @plugin 'git@bitbucket.com/user/plugin' set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' #set -g @continuum-boot 'on' set -g @plugin 'tmux-plugins/tmux-sidebar' set -g @plugin 'ayzenquwe/tmux-ping' set -g @plugin 'tmux-plugins/tmux-net-speed' set -g @net_speed_interfaces "eth0" set -g @net_speed_format "D:%5s U:%5s" set -g @plugin 'nhdaly/tmux-better-mouse-mode' set -g @scroll-down-exit-copy-mode "off" set -g @scroll-without-changing-pane "off" set -g @scroll-in-moused-over-pane "on" set -g @scroll-speed-num-lines-per-scroll "3" set -g @emulate-scroll-for-no-mouse-alternate-buffer "on" # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '/opt/tmux/plugins/tpm/tpm'