Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

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
up vote 9 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.