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.

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

share|improve this question

2 Answers 2

up vote 8 down vote accepted

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.

share|improve this answer

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.

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.