enable mouse control

This commit is contained in:
Jidbo 2020-12-19 19:44:15 +01:00
parent 92b4a02572
commit 814f5409d0
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA

View file

@ -13,6 +13,15 @@ bind-key -T copy-mode-vi C-j select-pane -D
bind-key -T copy-mode-vi C-k select-pane -U
bind-key -T copy-mode-vi C-l select-pane -R
# copy to system clipboard
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
# enable mouse
# setw -g mode-mouse on
# set -g mouse-select-window on
set -g mouse on
# reload tmux.conf with <prefix>-r
unbind r
bind r \
@ -23,7 +32,6 @@ bind -n M-h previous-window
bind -n M-l next-window
bind -n M-j switch-client -n
bind -n M-k switch-client -p
bind -n M-k switch-client -p
bind-key -n M-s set-option status