Skip to content
Browse files

Toggleable tmux mouse mode

Thanks @metamorfos
  • Loading branch information...
1 parent aee60a4 commit 24a30d88268249e564e63d4e37b43239e293623b @pengwynn committed Dec 8, 2012
Showing with 16 additions and 5 deletions.
  1. +16 −5 tmux/tmux.conf.symlink
View
21 tmux/tmux.conf.symlink
@@ -108,12 +108,23 @@ set-window-option -g window-status-attr dim
# starts windows at 1 not 0
set-option -g base-index 1
-## enable mouse
-set-option -g mouse-select-pane on
-set-option -g mouse-select-window on
-set-option -g mouse-resize-pane on
+# Toggle mouse on with ^F 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 ^F 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'
+
set-window-option -g mode-keys vi
-set-window-option -g mode-mouse on
# set-window-option -g monitor-activity off
# set-window-option -g monitor-content off
# set-option -g status-keys vi

0 comments on commit 24a30d8

Please sign in to comment.
Something went wrong with that request. Please try again.