simplify tmux config

This commit is contained in:
Johannes Loher 2023-07-18 00:43:56 +02:00
parent f6190082de
commit 1f6b77b507
Signed by: saluu
GPG key ID: 7CB0A9FB553DA045

View file

@ -17,9 +17,8 @@ set -g mouse on
# Lower escape timing from 500ms to 100ms for quicker response to scroll-buffer access.
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 - | wl-copy --primary"
# Copy to the primary clipboard
set -s copy-command 'wl-copy --primary'
# Middle click to paste from the clipboard
unbind-key MouseDown2Pane