Re: binding multiple commands

2011-09-05 Thread Nicolas Pinto
Nicholas, Thanks a lot, it's much better! bind m set -g mouse-select-pane \; set -g mouse-resize-pane \; set -g mouse-select-window\; set -g mode-mouse N On Mon, Sep 5, 2011 at 7:29 PM, Nicholas Marriott wrote: > > bind a set -g mouse-select-pane \; set -g mouse-resize-pane \; set -g > mouse-

Re: binding multiple commands

2011-09-05 Thread Nicholas Marriott
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

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...