bind a set -g mouse-select-pane \; set -g mouse-resize-pane \; set -g 
mouse-select-window

will make C-b a toggle all three.


On Thu, Sep 01, 2011 at 01:42:32PM -0400, Nicolas Pinto wrote:
> Hello,
> 
> First of all, thanks a ton for tmux -- it's a clear game changer in my work!
> 
> I'd like to be able to "toggle" mouse support to ease copy/paste
> interaction with *term (e.g. xterm, iterm2, etc.).
> 
> # -- mouse: tmux
> set-option -g mouse-select-pane on
> set-option -g mouse-resize-pane on
> set-option -g mouse-select-window on
> set-window-option -g mode-mouse on
> 
> # -- mouse: (*term, i.e. non-tmux)
> set-option -g mouse-select-pane off
> set-option -g mouse-resize-pane off
> set-option -g mouse-select-window off
> set-window-option -g mode-mouse off
> 
> How can I toggle on/off using prefix-m ? Can I combine multiple
> commands with one binding (e.g. using bind m "set-option -g ...;
> set-option -g ...; ...") ?
> 
> Thanks for your help.
> 
> Regards,
> 
> Nicolas
> 
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better 
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to