I'm trying to use (abuse?) tmux for displaying the progress of several 
jobs running in parallel. For that, I'd like to insert new panes at the 
bottom, thereby moving other panes up. Panes should keep a fixed height 
and when one pane is closed, those on top of it should move down.

What I've come up to so far, boils down to this:

  issue_job() {
    tmux split-window -d -v -l 3 "tmux swap-pane && exec $1"
  }

This way, panes are stacked from the bottom, which is not too bad. Say, 
I keep 5 jobs running in parallel. When a job finishes and its pane 
closes, the pane on top of it grows by that free space instead of moving 
down into it. New jobs are still stacked on top, so it looks like a 
block of panes moving to the top. There tmux can't create new panes; 
only after the last job pane closes does the whole process start again 
from the bottom.

I realize that this isn't quite what tmux is intended for, but maybe it 
can be coaxed into working this way.

Michael

-- 
Michael Schuerig
mailto:mich...@schuerig.de
http://www.schuerig.de/michael/


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to