Another way of changing the title of gnome-terminal
is by using gconftool-2
; this changes the initial terminal title for the profile selected, so you could have different profiles associated with titles such as 'Apache', 'Editing', etc. You would then launch gnome-terminal
with the appropriate profile to get the terminal title you had specified. This is in contrast to gnome-terminal --title "name"
which changes the title per terminal, but doesn't affect the initial title specified in the profile.
You could use the following command in a script to set the name of the terminal for a profile, and you could have the name of the terminal change at certain times in the day to remind you of things:
gconftool-2 --set /apps/gnome-terminal/profiles/Default/title --type=string "Apache"
This is for the default profile, but you could set the title for other profiles as well by changing, for example, Default
to another profile like Profile0
:
gconftool-2 --set /apps/gnome-terminal/profiles/Profile0/title --type=string "Editing"
I thought this way of changing the title is of use because of the way it could be used in scripting, or just as a quick command-line way to set the title for the profile. Note that sometimes you have to relaunch the terminal with the specified profile for the gconftool-2
setting to take affect. The complete settings available for gnome-terminal
can be listed with gconftool-2 -R /apps/gnome-terminal
.
gnome-terminal --load-config
together with this script I've written.# set title of current terminal setTerminalTitle(){ echo -ne "\033]0;${1}\007" } alias termttl=setTerminalTitle
now you can use termttl alias for setting title e.g.termttl askubuntu
gnome-terminal
default isPROMPT_COMMAND=__vte_prompt_command
. This uses values from Profiles in prefs. When multiple profiles exist, New Tab and New Window menu items have a submenu item for each Profile. The manual way is to open a new terminal tab, right click on the tab title, and select Set Title.... (This would read so much easier in a separate answer, but ...)