LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-11-2011, 07:59 PM   #1
apt-get
Member
 
Registered: Dec 2010
Distribution: Debian Squeeze (Console Only)
Posts: 79

Rep: Reputation: 7
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?
 
Old 01-12-2011, 04:48 PM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,434

Rep: Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192
Have you seen the following?

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

Evo2.

Last edited by evo2; 01-12-2011 at 04:49 PM. Reason: Remove double post ...chromium
 
Old 01-12-2011, 06:40 PM   #3
apt-get
Member
 
Registered: Dec 2010
Distribution: Debian Squeeze (Console Only)
Posts: 79

Original Poster
Rep: Reputation: 7
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.
 
Old 01-17-2012, 10:00 PM   #4
casperdaghost
Member
 
Registered: Aug 2009
Posts: 346

Rep: Reputation: 16
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting programs to run as default... tkienzle Ubuntu 1 09-04-2008 10:52 AM
Setting default programs JungleNut Linux - General 5 02-05-2006 07:36 AM
Debian w/ KDE 3.3.2: setting default programs, and mp3 support audiorevolution Linux - Newbie 1 06-03-2005 09:55 AM
setting programs as default in mandrake 9.1 rybing Linux - Newbie 1 05-11-2004 04:14 PM
setting default page size and default tray lived4eva Linux - General 1 11-04-2003 02:39 PM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration