On Wed, Jan 12, 2011 at 12:58:27PM -0500, Patrick Shanahan wrote: > * hubert depesz lubaczewski <dep...@depesz.com> [01-12-11 11:53]: > > > > that is - I use 3 panels, split horizontally, with the top 2 having > > predefined, fixed height of 10 lines. > > > > Now - I know I can make it myself, but running tmux, doing the split, and > > then > > manually changing sizes of panes, but I'm looking for a script-based way to > > do > > it. > > > > In general - I need a script that will: > > 1. check for existing session > > 2. if the session exists - exit > > 3. if it doesn't exist - make new one, detached > > 4. in the new session, on first window, make 3 panes, change their sizes to > > 10 lines, 10 lines, rest > > > > i checked the docs and examples, and even bugged people on irc, but I > > wasn't able to get to a way to do it. > > get an xterm window with size 136x52 at 575+20 > black on white > title "Pakas Tmux ML" > attaches existing session or starts new if no existing > > xterm -geometry 136x52+575+20 -ls -bg white -fg black \ > -title "Pakas Tmux ML" -e tmux -2u attach > > > > ~/.tmux.conf > split-window -v -l 10 > swap-pane -U > split-window -v -l 10 > > > will give you three panes but the two lowers will be 10 lines each
I know about split -l, but as you said - it will work for lower panes only. any way to do it with top panes? as for the xterm command - most of the steps I can do on my own, i have problems only with the 10 lines requirement, and too small default *detached* window. Best regards, depesz ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users