enable mouse control
This commit is contained in:
parent
92b4a02572
commit
814f5409d0
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue