X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=dotfiles%2Ftmux%2F.tmux.conf;h=4d5fa5e4c7630501bd0d8f044216b46ae6e40669;hb=e6c24ad7390da0b2a1f91493b6870552f00f52f6;hp=9bfe9b12fcd32be06b47bc0ffc9f45b4377ffb0f;hpb=b0d3cc133e4e19763b08f6c69eca2a3cfd7fb7ad;p=shutils.git diff --git a/dotfiles/tmux/.tmux.conf b/dotfiles/tmux/.tmux.conf index 9bfe9b1..4d5fa5e 100644 --- a/dotfiles/tmux/.tmux.conf +++ b/dotfiles/tmux/.tmux.conf @@ -1,8 +1,23 @@ -set -g default-terminal "screen-256color" -set -g mouse on +# Prefer xterm-256color as vim (neovim) within mutt switches to monochrome with +# screen-256color. +set -g default-terminal "xterm-256color" +#set -g mouse on set-window-option -g xterm-keys on +# Pass escape immediately to vim +set -sg escape-time 0 + +# Copy to X11 clipboard +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + +bind-key m set-option -g mouse on \; display 'Mouse: ON' +bind-key M set-option -g mouse off \; display 'Mouse: OFF' + +# Pass titles to terminal +set-option -g set-titles on +set-option -g set-titles-string "[#S : #W : #T]" + # {{{{ Gruvbox color scheme # https://github.com/egel/tmux-gruvbox/blob/master/tmux-gruvbox-dark.conf @@ -10,6 +25,9 @@ set-window-option -g xterm-keys on ## COLORSCHEME: gruvbox dark set-option -g status "on" +set -g window-active-style bg=colour234 +set -g window-style bg=black + # default statusbar color set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1 @@ -50,8 +68,8 @@ 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]" -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 " +set-option -g status-left "#[fg=colour248, bg=colour241] #S: #T #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]" +set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]#[fg=colour246,bg=colour239] %b %d  %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#[fg=colour237, bg=colour248] #h " 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]" 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]"