* 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 -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org ------------------------------------------------------------------------------ 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