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/
make
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):

#!/bin/sh
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
exit

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:

http://crunchbanglinux.org/forums/topic/1003/terminator-transparency-workaround/
https://help.ubuntu.com/community/TransparentTerminals

3 Responses to Ubuntu : Real transparence in Terminator

  1. phoenixisthebaker says:

    I used this in my CrunchBang install, and it didn’t quite work.

    Terminator has transparency as it always has, but it only shows the desktop wallpaper, not the windows behind it.

    Ideas?

    • Chris says:

      talk about bringing posts back to life, I found this out earlier today, and figured in the future someone might stumble across this post. You have to enable xcompmgr or cairo in order to get the window transparency to work the way you want in CrunchBang

  2. Hi phoenixisthebaker,
    Once CrunchBang is debian based it may work. Transset-df allows to turn any program transparent (once it works). It tooks the id of current active window and make it transparent changing in xorg. Did you install transset-df from source? I’ve just tried to built transset-df 4 (using the blog link) in a Ubuntu 11.10 and got an error, fixed installing libxcomposite-dev, libxdamage-dev, libxrender-dev. Then I try to test it running the command “transset-df –id `xprop -root | grep ‘_NET_ACTIVE_WINDOW(WINDOW): window id # ‘ | grep -o -E -e 0x[a-z0-9]+` 0.75” to make current window transparent, but it did not work =(. I also try transset-df 6 unsucessfully =/. I make a last shot with transset-df 6.1 from Launchpad and it did not work (maybe it still unstable). By the way, I suggest you to try this alternatives.
    Best regards,
    Emanuel

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: