From 9eda3a739ceef8ff4f676be03738c7c10664a3d0 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Tue, 9 Mar 2021 08:55:44 +0300 Subject: [PATCH] feat(tmux): copy from tmux to clipboard --- .tmux.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 1fe3804..7f033b3 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -22,10 +22,8 @@ bind v split-window -h bind r source-file ~/.tmux.conf -unbind p -bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b" -bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer" - +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i" +bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i" bind-key n new-window bind-key t next-window bind-key T previous-window