One solution is to use "run-shell":

bind m run-shell "tmux set-option -g mouse-select-pane on; tmux
set-option -g mouse-resize-pane on; tmux set-option -g mouse-select-window
on; tmux set-option -g mode-mouse on"

Now I need to be able to toggle, probably using a long script-like bash
one-liner... I will report back.

N

On Thu, Sep 1, 2011 at 1:42 PM, Nicolas Pinto <nicolas.pi...@gmail.com>
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
>



-- 
Nicolas Pinto
http://web.mit.edu/pinto
------------------------------------------------------------------------------
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