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. # Lower escape timing from 500ms to 100ms for quicker response to scroll-buffer access.
set -s escape-time 100 set -s escape-time 100
# Selection with mouse should copy to clipboard right away, in addition to the default action. # Copy to the primary clipboard
unbind -n -Tcopy-mode-vi MouseDragEnd1Pane set -s copy-command 'wl-copy --primary'
bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | wl-copy --primary"
# Middle click to paste from the clipboard # Middle click to paste from the clipboard
unbind-key MouseDown2Pane unbind-key MouseDown2Pane