Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 09-25-2008, 04:05 PM   #1
LQ Newbie
Registered: Jun 2006
Location: SLC, UT
Distribution: Ubuntu
Posts: 21

Rep: Reputation: 15
howto change gnome-terminal title bar


i'm using gnome-terminal and i've noticed that some applications change the title bar from whatever the PS1 variable is to various statuses, for instance during a gentoo emerge. is there a way for me to do this in bash scripts or php scripts?

Old 09-25-2008, 04:13 PM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,779
Blog Entries: 1

Rep: Reputation: 243Reputation: 243Reputation: 243
I use this function in Bash scripts to change the title. Just pass the desired title as a string.
# ------------------------------------------------------------------------------ #
# This function sets the title of the terminal-emulator
# or tab.
# ------------------------------------------------------------------------------ #
title() {

    echo -ne "\033]0;${1}\007"

Old 10-04-2008, 03:25 AM   #3
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,057

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Lyly is spamming this forum BIG TIME
[Edit]: All cleaned up now, thanks Mods [/Edit]

Last edited by tredegar; 10-04-2008 at 11:31 AM.


spam, spamming

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
Title bar trouble using gnome on Ubuntu 8.04 crazyalex Ubuntu 5 08-23-2008 12:15 AM
Cannot see the title bar on Gnome Slackbuild. deepumnit Linux - Desktop 0 06-20-2008 07:07 PM
Can I change title bar content in an application window? dhave Linux - Desktop 4 09-19-2007 01:27 PM
Can anyone tell me how to change the colour of the title bar in firefox? mish_the_pink Linux - Desktop 4 11-18-2006 06:53 PM
changing the title bar of terminal? webazoid Linux - Software 1 07-01-2004 06:54 PM

All times are GMT -5. The time now is 11:13 AM.

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