From d5f92f0fb973ed6e77e721629851dad894aa410d Mon Sep 17 00:00:00 2001 From: Oshgnacknak Date: Thu, 4 Sep 2025 21:51:18 +0200 Subject: [PATCH] tmux: copy into system clipboard --- _tmux.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_tmux.conf b/_tmux.conf index b0bd0c9..63575f9 100755 --- a/_tmux.conf +++ b/_tmux.conf @@ -1,4 +1,15 @@ set -g mouse on +# bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" +# bind -n WheelDownPane select-pane -t= \; send-keys -M +# bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M +# bind -t vi-copy C-WheelUpPane halfpage-up +# bind -t vi-copy C-WheelDownPane halfpage-down +# bind -t emacs-copy C-WheelUpPane halfpage-up +# bind -t emacs-copy C-WheelDownPane halfpage-down + +bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "wl-copy" +bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy" + setw -g mode-keys vi # I especially like being able to search with /,? when in copy-mode unbind C-b set -g prefix C-b