Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I use the gnome-terminal and most of my editors with a white on black theme as I find its easier on the eyes. One of my labs requires screenshots of the terminal (with the process) to be submitted along with program code.

So, is there a way to temporarily change the terminal to a black on white colour scheme, preferably from within the terminal itself ?

If not, is there a way to launch a child terminal with the inverted colour scheme, without affecting the parent terminal ?

share|improve this question
Why don't you simply invert the colors of the screen shot? It should be a one-liner with ImageMagick or similar. –  tripleee Feb 9 '13 at 10:04

1 Answer 1

up vote 6 down vote accepted

You can use gconftool-2 - GNOME configuration tool. First, you can list all your gnome profiles with:

$ gconftool-2 --get /apps/gnome-terminal/global/profile_list

Now you can print values for selected profile:

$ gconftool-2 -a "/apps/gnome-terminal/profiles/Default"

Store value of foreground and background color:

$ gconftool-2 --get "/apps/gnome-terminal/profiles/Default/foreground_color"
$ gconftool-2 --get "/apps/gnome-terminal/profiles/Default/background_color"

Now you can turn off using theme colours:

$ gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_colors" --type bool false

And set your own colours:

$ gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#EEEEEEEEECEC"
$ gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#000000000000"
share|improve this answer
Thanks. You could have said to put the last two commands in the same line. I had a white on white terminal for a few moments! –  AsheeshR Feb 9 '13 at 14:14

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.