LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   tmux: Setting up panes and the programs in them by default? (https://www.linuxquestions.org/questions/linux-software-2/tmux-setting-up-panes-and-the-programs-in-them-by-default-855722/)

apt-get 01-11-2011 07:59 PM

tmux: Setting up panes and the programs in them by default?
 
Hey, I'm trying to get tmux to open a certain set of panes an certain programs in those panes by default and open that way every time I run tmux. Is there any way to do this? I can't really figure it out...

I read in the documentation commands for this, but i have no idea where to begin.

Has anyone set anything up like this?

evo2 01-12-2011 04:48 PM

Have you seen the following?

http://blog.hawkhost.com/2010/07/02/...hell-scripting

Evo2.

apt-get 01-12-2011 06:40 PM

I have, but that's just windows as opposed to splitting a window. Each time I write a script to do it, it doesn't ever work.

.tmux.conf:
Code:

                         
new
split-window -h
split-window -h
split-window -h
select-pane -L
select-pane -L
select-pane -L
kill-pane
kill-pane
split-window
split-window
split-window
select-pane -U
select-pane -U
select-pane -U
kill-pane
kill-pane

Doesn't do anything.

casperdaghost 01-17-2012 10:00 PM

tmux script
 
please see my post at

http://www.linuxquestions.org/questi...-panes-917821/

with the send keys command literally types the keys in the pane and the C-m is like the enter key and invokes the command on the command line.


All times are GMT -5. The time now is 07:17 AM.