Set window title

Asked by Christopher Kelly on 2008-06-25

Is it possible to set the window title to something other than `Terminator'?

Question information

Language:
English Edit question
Status:
Solved
For:
Terminator Edit question
Assignee:
No assignee Edit question
Solved by:
Chris Jones
Solved:
2008-06-25
Last query:
2008-06-25
Last reply:
2008-06-25
Best Chris Jones (cmsj) said : #1

Possibly not in 0.8.1, however, the version we are preparing for release (which will be 0.9) definitely has this feature.
The window title is updated to have the title of the currently focussed terminal. For information about setting the title of a terminal, please see:

http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#ss4.3

Christopher Kelly (cck197) said : #2

Just got the latest version using bzr. That's exactly what I was after, thanks!

Here's a little snippet for your .bashrc to set the title to something explicit from the command line:

DEFAULT_PROMPT_COMMAND=$PROMPT_COMMAND
setWindowTitle() {
    export PROMPT_COMMAND="echo -ne \"\033]0;$* \007\""
}
unsetWindowTitle() {
    export PROMPT_COMMAND=$DEFAULT_PROMPT_COMMAND
}

nsh (lauri-love) said : #3

My terminator says its version is 0.12. Does this mean I can change the title of terminator's Xorg window? The reason is that I have set up a desktop terminal in crunchbang (openbox) and want to use the wmctrl program to automatically raise the desktop terminal again after using the keyboard shortcut to show desktop. For this I need the desktop terminal to have a unique title.

Chris Jones (cmsj) said : #4

nsh: until 0.13 is out you'll have to set the window title via the terminal titles, but when we release 0.13 you'll be able to use the -T option when running Terminator, to force a particular window title.