# Use C-a unbind C-b set-option -g prefix C-a bind-key C-a send-prefix # Enable mouse mode (tmux 2.1 and above) set -g mouse on # For vim themes set -g default-terminal "tmux-256color" set-option -sa terminal-overrides ',tmux-256color:RGB' # xterm-style function key sequences setw -g xterm-keys on # sane copy & paste in X (requires xclip) ; tmux 2.4+ set-option -s set-clipboard off bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i" # Automatically set window title set-window-option -g automatic-rename on set-option -g set-titles on # start from 1 set -g base-index 1 setw -g pane-base-index 1 # Emacs is cool, but I prefer vim set -g status-keys vi setw -g mode-keys vi # More history set -g history-limit 10000 # avoid delay and ESC behaving weird set -g escape-time 0 # For vim plugins relaying on focus events set -g focus-events on # Bind to reload config bind r source-file ~/.tmux.conf # Use current directory for these bind c new-window -c "#{pane_current_path}" bind v split-window -h -c "#{pane_current_path}" bind h split-window -v -c "#{pane_current_path}" ## COLORSCHEME: gruvbox dark set-option -g status "on" # default statusbar color set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1 # default window title colors set-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1 # default window with an activity alert set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3 # active window title colors set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1 # pane border set-option -g pane-active-border-style fg=colour250 #fg2 set-option -g pane-border-style fg=colour237 #bg1 # message infos set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1 # writing commands inactive set-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1 # pane number display set-option -g display-panes-active-colour colour250 #fg2 set-option -g display-panes-colour colour237 #bg1 # clock set-window-option -g clock-mode-colour colour109 #blue # bell set-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg ## Theme settings mixed with colors (unfortunately, but there is no cleaner way) set-option -g status-justify "left" set-option -g status-left-style none set-option -g status-left-length "80" set-option -g status-right-style none set-option -g status-right-length "80" set-window-option -g window-status-separator "" set-option -g status-left "#[fg=colour248, bg=colour241] #S #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]\ue0b0" set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]\ue0ba#[fg=colour246,bg=colour239] %Y-%m-%d \ue0bd #[fg=colour220]%H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]\ue0ba#[fg=colour237, bg=colour248] #h " set-window-option -g window-status-current-format "#[fg=colour237, bg=colour214, nobold, noitalics, nounderscore]\ue0b0#[fg=colour239, bg=colour214] #I:#[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore]\ue0b0" set-window-option -g window-status-format "#[fg=colour237,bg=colour239,noitalics]\ue0b0#[fg=colour223,bg=colour239] #I:#[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]\ue0b0"