tmux: No mouse by default, but shortcuts
authorStefan Huber <shuber@sthu.org>
Wed, 25 Mar 2020 07:29:21 +0000 (08:29 +0100)
committerStefan Huber <shuber@sthu.org>
Wed, 25 Mar 2020 07:29:21 +0000 (08:29 +0100)
dotfiles/tmux/.tmux.conf

index 67ebcb7b878dd1865d11fa93fa4eaf10135b0113..5306fffe006554f89789eaaeadde4f2c2d92565a 100644 (file)
@@ -1,10 +1,16 @@
 # Prefer xterm-256color as vim (neovim) within mutt switches to monochrome with
 # screen-256color.
 set -g default-terminal "xterm-256color"
 # 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
 
 
 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
 
 # {{{{ Gruvbox color scheme
 # https://github.com/egel/tmux-gruvbox/blob/master/tmux-gruvbox-dark.conf