From 713b839978449a3a3a6061670ee914ef1d995739 Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Mon, 27 Jan 2025 19:45:04 +0530 Subject: tmux: use wl-copy instead of xsel Signed-off-by: Brahmajit Das --- .tmux.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 2fca6c5..54905a1 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -23,9 +23,11 @@ bind y copy-mode unbind p bind p paste-buffer bind-key -T copy-mode-vi 'v' send -X begin-selection -bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' +bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'wl-copy' +bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'wl-copy' +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'wl-copy' bind-key -T copy-mode-vi 'r' send-keys -X rectangle-toggle -bind-key -T copy-mode-vi "Y" send-keys -X copy-pipe-and-cancel "tmux paste-buffer" +bind-key -T copy-mode-vi 'Y' send-keys -X copy-pipe-and-cancel "tmux paste-buffer" bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" bind-key -T copy-mode-vi MouseDown3Pane select-pane # right mouse button (to highlight sutff) bind-key -T copy-mode-vi MouseDrag3Pane select-pane \; send-keys -X begin-selection -- cgit v1.2.3