Compton is a standalone lightweight compositor for X (the graphic server on Linux systems). It provides 2D graphical acceleration and this allow us to drop shadows under the windows, make elements fade as they (dis)appear, draw (semi)transparent menus and notifications, etc.
- We're going to installing Compton from a PPA (ensuring latest version in our system). Open LXTerminal and type the following commands:
sudo add-apt-repository ppa:richardgv/compton
sudo apt-get update && sudo apt-get install compton
- Now, if we want it to execute on every startup, edit the session file (open LXTerminal and paste "sudo leafpad /etc/xdg/lxsession/Lubuntu/autostart" without the quotes)
...and add the following line:
@compton -c -r 16 -l -24 -t -12 -G -b
Don't forget to include the "@" symbol, or it won't work. These parameters are my Compton configuration. If you want to use your own, but you don't know how they work, you can read this guide (sorry, only Spanish, Google translated here)
- And we're over! Now re-login onto your Lubuntu desktop (or execute "compton -c -r 16 -l -24 -t -12 -G -b && exit" at LXTerminal for immediate testing!
- Devin shows how to install Compton on Precise Pangolin and solve the dependency on package libconfig9. Just go here, download and install it.
- Van Long solved the shadow problem using Conky (the famous resource meter). Just edit "~/.config/compton.config" and add this line:
shadow-exclude = [ "g:si:Noti" ];
← Go back to Tips and Tricks