From: Stefan Huber Date: Wed, 25 Mar 2020 07:29:21 +0000 (+0100) Subject: tmux: No mouse by default, but shortcuts X-Git-Url: https://git.sthu.org/?p=shutils.git;a=commitdiff_plain;h=6fccdae7cc4161b8a58611f0da91fbd07b453a38 tmux: No mouse by default, but shortcuts --- diff --git a/dotfiles/tmux/.tmux.conf b/dotfiles/tmux/.tmux.conf index 67ebcb7..5306fff 100644 --- a/dotfiles/tmux/.tmux.conf +++ b/dotfiles/tmux/.tmux.conf @@ -1,10 +1,16 @@ # 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 +# 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