1 # Prefer xterm-256color as vim (neovim) within mutt switches to monochrome with
3 set -g default-terminal "xterm-256color"
6 set-window-option -g xterm-keys on
8 # Pass escape immediately to vim
11 # Copy to X11 clipboard
12 bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
14 bind-key m set-option -g mouse on \; display 'Mouse: ON'
15 bind-key M set-option -g mouse off \; display 'Mouse: OFF'
17 # Pass titles to terminal
18 set-option -g set-titles on
19 set-option -g set-titles-string "[#S : #W : #T]"
22 # {{{{ Gruvbox color scheme
23 # https://github.com/egel/tmux-gruvbox/blob/master/tmux-gruvbox-dark.conf
25 ## COLORSCHEME: gruvbox dark
26 set-option -g status "on"
28 # default statusbar color
29 set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1
31 # default window title colors
32 set-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1
34 # default window with an activity alert
35 set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3
37 # active window title colors
38 set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1
41 set-option -g pane-active-border-style fg=colour250 #fg2
42 set-option -g pane-border-style fg=colour237 #bg1
45 set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1
47 # writing commands inactive
48 set-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1
51 set-option -g display-panes-active-colour colour250 #fg2
52 set-option -g display-panes-colour colour237 #bg1
55 set-window-option -g clock-mode-colour colour109 #blue
58 set-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg
60 ## Theme settings mixed with colors (unfortunately, but there is no cleaner way)
61 set-option -g status-justify "left"
62 set-option -g status-left-style none
63 set-option -g status-left-length "80"
64 set-option -g status-right-style none
65 set-option -g status-right-length "80"
66 set-window-option -g window-status-separator ""
68 set-option -g status-left "#[fg=colour248, bg=colour241] #S: #T #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]"
69 set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]#[fg=colour246,bg=colour239] %Y-%m-%d %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#[fg=colour237, bg=colour248] #h "
71 set-window-option -g window-status-current-format "#[fg=colour237, bg=colour214, nobold, noitalics, nounderscore]#[fg=colour239, bg=colour214] #I #[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore]"
72 set-window-option -g window-status-format "#[fg=colour237,bg=colour239,noitalics]#[fg=colour223,bg=colour239] #I #[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]"