projects
/
shutils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
86dfdc2
)
tmux: No mouse by default, but shortcuts
author
Stefan Huber <shuber@sthu.org>
Wed, 25 Mar 2020 07:29:21 +0000
(08:29 +0100)
committer
Stefan Huber <shuber@sthu.org>
Wed, 25 Mar 2020 07:29:21 +0000
(08:29 +0100)
dotfiles/tmux/.tmux.conf
patch
|
blob
|
history
diff --git
a/dotfiles/tmux/.tmux.conf
b/dotfiles/tmux/.tmux.conf
index 67ebcb7b878dd1865d11fa93fa4eaf10135b0113..5306fffe006554f89789eaaeadde4f2c2d92565a 100644
(file)
--- 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"
# 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