LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-04-2008, 11:49 PM   #1
SoutheastSam
Member
 
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38

Rep: Reputation: 15
Terminal Help


Is it possible to configure terminal, when run, to create two tabs and name them? If so, how?

-Sam
 
Old 12-04-2008, 11:53 PM   #2
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Rep: Reputation: 47
Not sure about naming them, but if you have the XFCE terminal, you can set a launcher to execute "terminal --tab" and it will open 2 tabs at the same time.
 
Old 12-05-2008, 12:07 AM   #3
SoutheastSam
Member
 
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38

Original Poster
Rep: Reputation: 15
I'm running GNOME desktop. Know anything about that?

-Sam
 
Old 12-05-2008, 12:16 AM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Rep: Reputation: 47
Have you tried a "gnome-terminal --help" or a "man gnome-terminal"? I don't use gnome so I can't say for certain.
 
Old 12-05-2008, 01:54 AM   #5
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
gnome-terminal has --tab option as well. Use it multiple times to open more than one tabs. Such as:

Code:
gnome-terminal --tab --tab
not sure about naming/titles. Check manpage and let us know as well if you find :-)
 
Old 12-05-2008, 02:58 AM   #6
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
using gui i find there is something as title which can be edited, open terminal go to edit current profile tab to title and command. is this what you were looking for ?
 
Old 12-05-2008, 07:27 AM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,498

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
The gnome-terminal tab's title is dynamically set by the command assigned to the environment variable PROMPT_COMMAND. For example on my system I have
Code:
$ echo $PROMPT_COMMAND
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}"; echo -ne "\007"'
this will set the terminal and tab titles to something like
Code:
colucix@hostname:~/some/dir
If you want to one or more tabs with a fixed title, you have to create one or more different Profiles and unset the dynamic creation of the title for each of them. To do this, just open a Terminal and from the menu Edit --> Profiles choose "New". Give a profile name, click on "Create" then edit the profile by selecting the "Title and Commands" tab. In the "Initial Title" box put your custom title, then chose "Isn't displayed" in the "Dynamically-set title" list. Close.

The process above will create the file
Code:
$HOME/.gconf/apps/gnome-terminal/profiles/NAME_OF_THE_PROFILE/%gconf.xml
that is the configuration file - in XML format - which describes the profile's settings. Finally to open a terminal with two tabs and a custom title, just do
Code:
gnome-terminal --tab-with-profile=NAME_OF_FIRST_PROFILE --tab-with-profile=NAME_OF_SECOND_PROFILE
where you will put the proper name(s) of the newly created profile(s). Hope this helps.
 
Old 12-05-2008, 09:28 AM   #8
SoutheastSam
Member
 
Registered: Nov 2008
Location: Brandon, MS
Distribution: Fedora 10 (Cambridge)
Posts: 38

Original Poster
Rep: Reputation: 15
That worked, now every time I open terminal it runs
Code:
gnome-terminal --tab-with-profile=Work --tab-with-profile=Downloading
and then closes the original terminal so I'm left with only one. Thanks!

-Sam
 
  


Reply

Tags
terminal


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
How do I resize the terminal window from the command line in the gnome terminal QuIcKSpArK Linux - Newbie 5 04-21-2012 02:04 PM
not screen-blanking in terminal - what sets the idle timeout on monitor for terminal stardotstar Linux - Hardware 2 08-14-2011 05:46 AM
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM


All times are GMT -5. The time now is 07:16 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