Browse Source

tmux: mouse modes

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 10 years ago
parent
commit
5b2645b395
1 changed files with 23 additions and 1 deletions
  1. +23
    -1
      files/.tmux.conf

+ 23
- 1
files/.tmux.conf

@ -9,7 +9,6 @@ set -g pane-base-index 1
# misc features
set -s escape-time 1
setw -g mode-keys vi
setw -g mode-mouse on
# reload
bind r source-file ~/.tmux.conf \; display "Reloaded!"
@ -22,6 +21,29 @@ set -g status-utf8 on
set -g monitor-activity on
set -g visual-activity on
# Mouse
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Toggle mouse on with ^A m
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off with ^A M
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'
# sessions
#
bind -r ( switch-client -p

Loading…
Cancel
Save