Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to change color theme (or whole gnome-terminal profile) of terminal if for example Midnight Commander is started inside gnome-terminal? My aim is not to launch a new terminal window but to change color theme depending on launched app.

share|improve this question
up vote 1 down vote accepted

You can write a shell function to use setterm (or the equivalent on your OS) to change the colors before the program is invoked, but there is no way to change the gnome-terminal profile from the command line (the title can be changed though).

share|improve this answer
This. Wrapping the desired in shell scripts that setterm the terminal then run the program is pretty much the only way to do this. – Mala Mar 25 '12 at 18:42

you can take a look at this topic:

I was looking for a way to solve this using dbus...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.