someone else asked for a way to set the initial size but they didn't really give a convincing use case so i didn't do it
what you can do to get it the right size is do tmux new\; detach rather than new -d you can resize the panes after you've created them tmux new -d\; splitw -d\; resizep -U 100\; resizep -D 1\; attach or alternatively tmux new -d\; splitw -d\; set -g main-pane-height 2\; selectl main-horizontal\; set -u main-pane-height\; attach of course this doesn't really help unless you can make the window the right size On Wed, Jan 12, 2011 at 07:02:50PM +0100, hubert depesz lubaczewski wrote: > 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 ------------------------------------------------------------------------------ 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