Skip to content

Instantly share code, notes, and snippets.

@trlinkin
Created December 8, 2012 06:43
Show Gist options
  • Save trlinkin/4238948 to your computer and use it in GitHub Desktop.
Save trlinkin/4238948 to your computer and use it in GitHub Desktop.
tmux mouse toggle
# Toggle mouse on with ^B 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 ^B 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'
@AmroAbdul
Copy link

AmroAbdul commented Feb 28, 2024

instead of mode-mouse it should be mouse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment