You'd need to write a wrapper script that does something like (not
tested):

if pgrep -x tmux >/dev/null; then
        tmux neww "$@"
        exit
fi
"$@"


On Thu, Sep 22, 2011 at 06:52:37PM -0700, Larry Gagnon wrote:
> As a new user of tmux I am really enjoying it. I use it under Linux in
> a urxvt terminal. What I would like to do, however, is have a command
> string in my fluxbox menu entries, such that, for my console apps, if
> there is already an instance of tmux open in a terminal the newly
> launched application gets sent to that tmux window. Is that possible.
> It seems as though it might be using the "new-window" feature. Any
> ideas appreeciated.
> 
> Larry
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to