tmux: copy into system clipboard

This commit is contained in:
Oshgnacknak 2025-09-04 21:51:18 +02:00
parent 72be60dd6e
commit d5f92f0fb9
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956

View file

@ -1,4 +1,15 @@
set -g mouse on 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 setw -g mode-keys vi # I especially like being able to search with /,? when in copy-mode
unbind C-b unbind C-b
set -g prefix C-b set -g prefix C-b