Ubuntu : Real transparence in Terminator

Hi fellows,

Following a tip to configure the terminator terminal to real transparence.

First, if you don’t know terminator take a look (it’s a useful tool!)

Once you have installed it:

sudo apt-get install terminator

You’ll see that even if you mark “real transparency” through righ click in the screen > Edit Profile > Appearence tab, it didn’t work.

So the workaround to this issue is to use transset-df tool that turn any window transparent:

Unfortunately, the transset that are found in apt is not the right one, so you should install it from the source:

wget http://forchheimer.se/transset-df/transset-df-4.tar.gz
tar -xvzf transset-df-4.tar.gz
rm transset-df-4.tar.gz
cd transset-df-4/
sudo make install
cd ..
rm -r transset-df-4

Once installed, create a launcher to terminator (at /usr/local/bin for instance):

sudo touch /usr/local/bin/terminator
sudo chmod +x /usr/local/bin/terminator

And paste the following commands (using vim with sudo for instance):

exec /usr/bin/terminator $@ &
sleep 2s
transset-df --id `xprop -root |
grep "_NET_ACTIVE_WINDOW(WINDOW): window id # " |
grep -o -E -e 0x[a-z0-9]+` 0.75 &> /dev/null

Now run terminator from this launcher and it should be transparent!

transparent terminator

Some useful shortcuts:

Ctrl + Shift + O: Split horizontally
Ctrl + Shift + E: Split vertically
Ctrl + Shift + P: Turn to the previous terminal view (ou Ctrl + Shift + Tab)
Ctrl + Shift + N: Turn to the next terminal view

Ctrl + Shift + W: Close the current terminal view
Ctrl + Shift + Q: Quit terminator

If the Terminator’s title-bar is showing “None” in spite of the current directory it is because your environment does not know the variable PROMPT_COMMAND. So, add the following line to your .bashrc file:

PROMPT_COMMAND=’echo -ne “33]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}07″‘

See ya

See more: