Re: binding multiple commands

2011-09-01 Thread Nicolas Pinto
Ok, got a rough-but-working solution in place: bind m run-shell "if [[ `tmux show-option -w | grep mode-mouse.*on` ]]; then toggle=off; else export toggle=on; fi; tmux display-message \"mouse tmux: \$toggle\"; tmux set-option -w mode-mouse \$toggle &> /dev/null; for cmd in mouse-select-pane mouse-

Re: binding multiple commands

2011-09-01 Thread Nicolas Pinto
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...

binding multiple commands

2011-09-01 Thread Nicolas Pinto
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-optio