diff options
Diffstat (limited to '.tmux.conf')
-rw-r--r-- | .tmux.conf | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -62,9 +62,13 @@ setw -g mode-keys vi bind-key -T copy-mode-vi v send -X begin-selection bind-key -T copy-mode-vi y send -X copy-selection # clipboard settings -set -s set-clipboard on -bind-key C-p run "xclip -o | tmux load-buffer - ; tmux paste-buffer" -bind-key C-y run "tmux save-buffer - | xclip -i" +set-option -s set-clipboard off +# mouse selection gets copied to system clipboard +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "~/bin/clipboard-wrapper -i" +# visual selection gets copied to system clipboard +bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "~/bin/clipboard-wrapper -i" +# paste (doesn't do anything yet) +bind-key -T copy-mode-vi p run "~/bin/clipboard-wrapper -o | tmux load-buffer - ; tmux paste-buffer" # set first window to index 1 (not 0) to map more to the keyboard layout... set -g base-index 1 |