From 4724bc14acda204d0cb3e4119a3da663c7661cb3 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sun, 6 Jun 2021 16:42:41 +0200 Subject: [PATCH] tmux: fix copy-paste --- .tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 94fb912..ecf016d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,8 +1,8 @@ # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @plugin 'odedlaz/tmux-onedark-theme' +set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @onedark_date_format "%d.%m.%y" set -g default-terminal "tmux-256color" @@ -19,11 +19,11 @@ set -s escape-time 100 # Selection with mouse should copy to clipboard right away, in addition to the default action. unbind -n -Tcopy-mode-vi MouseDragEnd1Pane -bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i -sel primary > /dev/null" +bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | wl-copy --primary" # Middle click to paste from the clipboard unbind-key MouseDown2Pane -bind-key -n MouseDown2Pane run "tmux set-buffer \"$(wl-copy --primary)\"; tmux paste-buffer" +bind-key -n MouseDown2Pane run "tmux set-buffer \"$(wl-paste --primary)\"; tmux paste-buffer" # Splitting bind-key h split-window -h