X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=dotfiles%2Ftmux%2F.tmux.conf;h=242c9531415bc9caec530d2f2b32fa264e32a1ba;hb=894a1bf1ac8f2a3a79992ae8c021a857258d7efd;hp=67ebcb7b878dd1865d11fa93fa4eaf10135b0113;hpb=86dfdc283ec7db759ee237dd2616cc94857bffc5;p=shutils.git diff --git a/dotfiles/tmux/.tmux.conf b/dotfiles/tmux/.tmux.conf index 67ebcb7..242c953 100644 --- a/dotfiles/tmux/.tmux.conf +++ b/dotfiles/tmux/.tmux.conf @@ -1,10 +1,19 @@ # 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 -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' + # {{{{ Gruvbox color scheme # https://github.com/egel/tmux-gruvbox/blob/master/tmux-gruvbox-dark.conf