From 6fccdae7cc4161b8a58611f0da91fbd07b453a38 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 25 Mar 2020 08:29:21 +0100 Subject: [PATCH] tmux: No mouse by default, but shortcuts --- dotfiles/tmux/.tmux.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5