diff --git a/shell/tmux.conf b/shell/tmux.conf index 30bbaae..c0c1ea6 100644 --- a/shell/tmux.conf +++ b/shell/tmux.conf @@ -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 -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