How can I change the transparency of the Terminal windows in Ubuntu with a command?

I already know about the profile method but want a command so that I can quickly swap between transparent and opaque.

My terminal is GNOME Terminal 2.30.2

2 Answers 2


You can use gconftool with the key /apps/gnome-terminal/profiles/Default/background_type (you might have to use a different profile name than "Default"):

gconftool -s -t string /apps/gnome-terminal/profiles/Default/background_type solid
gconftool -s -t string /apps/gnome-terminal/profiles/Default/background_type transparent

This was tested in version 3.0.1, but the command should be the same.


If you wish to change the transparency in continuous rather than discrete steps, try:

gconftool-2 --set /apps/gnome-terminal/profiles/Default/background_darkness --type=float 0.50 with /apps/gnome-terminal/profiles/Default/background_darkness being the key and 0.50 being the value.

Your Answer

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

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