I want to automatically change the color of my xterm titlebar. I would like to put code into my .bashrc so that the color changes automatically (say depending on the directory I am in).

I know how to change the prompt and also how to change the text displayed in the titlebar. My question is about the color of the titlebar. Right now the color is orangish. I am using Ubuntu.


migrated from stackoverflow.com Jun 13 '10 at 0:46

This question came from our site for professional and enthusiast programmers.


xterm will inherit the window decoration settings of your window manager. I don't think there is currently a way of automatically changing it based on your current directory.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy