tmux: copy to wl-copy

This commit is contained in:
Johannes Loher 2021-01-04 17:53:44 +01:00
parent 0638a155f2
commit 610b77ac72

View file

@ -21,7 +21,7 @@ bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "t
# Middle click to paste from the clipboard
unbind-key MouseDown2Pane
bind-key -n MouseDown2Pane run "tmux set-buffer \"$(xclip -o -sel primary)\"; tmux paste-buffer"
bind-key -n MouseDown2Pane run "tmux set-buffer \"$(wl-copy --primary)\"; tmux paste-buffer"
# Splitting
bind-key h split-window -h