Those who chat with me on the IRC, they know I'm a fan of lightweight desks. I spend it in Xfce, LXDE, open box and even Mate, since other environments like Gnome / Cinnamon y KDE They are very heavy for my modest PC.
Likewise, I entertain myself customizing such desks and assembling them light applications that allow me to have a system as complete as possible with low consumption.
Long ago our friend TheSandman86 tell us about Crunchbang 11, which included a composer named Compton, which I have been testing and which I will talk more about today.
To begin with, Compton is a light composeras mentioned before) that is included in crunchbang. This composer is a fork de xcompmgr-dana, which in turn is a fork of xcompmgr. With this you already get an idea of how light it is, but I will tell you: with almost all the options it has activated, its consumption is 2MB. Great, don't you think? 🙂
To prove it, we must download it from your page git y compile it. Their dependencies are the same as needed to compile xcompmgr. I put them here:
- libx11
- libxcomposite
- libxdamage
- libxfixes
- libxrender
- pkg-config
- make
- xproto / x11proto
- xprop, xwininfo / x11-utils.
We install git and we do (in a terminal):
git clone git://github.com/chjj/compton.git
That will download the compton code to the folder we are in in the terminal. Then we execute:
cd compton
make
sudo make install/
With that we will have Compton installed. Compton is executed by the terminal, and we can know the Available options with man compton. However as a courtesy, I leave you some examples:
compton -c
: the most basic form of composition. Composition standard with shadows on windows, panels and docks (predefined values).
compton -cCGb
: composition with shadows on windows, preventing them from appearing in panels and docks, and drag and drop windows.
compton -r 12.0 -o 0.75 -l -15.0 -t -15.0 -I 0.028 -O 0.03 -D 3 -c -f -C -F -G
: this is medium long xD It is the one I use. Has Shadows that do not burn to panels and docks, animations «fade in out"To window, as in Menus.
Well with that last setup my desktops look like this:
As you can see, the result is quite satisfactory. Nice effects in a reduced consumption, and in desks that algunos would qualify as poor compared to Gnome o KDE.
Adding Compton to the start of desktops
Of course we do not want to be activating the composition manually 😛 So we have to explain how to add Compton to the automatic start of some desktops.
Xfce: we are going to Configuration manager »Session and start» Applications autostart »Add and we add the command with the options of our preference.
LXDE: we edit the file / etc / xdg / lxsession / LXDE / autostart and we add «@»Followed by the command and the options we want. For example, the one in my Arch LXDE contains this:
[code] @lxpanel –profile LXDE@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@setxkbmap latam
@ / usr / bin / numlockx on
@compton -r 12.0 -o 0.75 -l -15.0 -t -15.0 -I 0.023 -O 0.03 -D 3 -c -f -C -G
[/ Code]
Openbox: for Openbox, we must edit the file ~ / .config / openbox / autostart (If it doesn't exist, we create it) and add the command and options at the end, followed by "&" (preferably). For example:
thunar --daemon &
nitrogen --restore &
tint2 &
compton -r 12.0 -o 0.75 -l -15.0 -t -15.0 -I 0.028 -O 0.03 -D 3 -c -f -C -F -G &
These are just examples, you can try other desktops or window managers. And if they want share your configuration, feel free to write it in our paste, and leave it in a comment 😉
Extra: Gcompton, a graphical interface for Compton
Well, it happens that our dear companion They are Link, has been working on a Graphic interface for ComptonCalled gcompton. It is written in Python y GTK. From it we can adjust all parameters de Compton and start it, stop it y restart it. And if we press the button «Add to login session«, Will give us a command that we can add to the beginning of our desktop. Without a doubt, very useful for those who prefer a GUI instead of a terminal.
Gcompton is available at the Son Link Github, along with other of his projects. To install it, in a terminal we do:
git clone git: //github.com/son-link/gcompton.git
Then we go to the folder and execute the file gcompton.py. However, in case it doesn't start them, edit that file, and look for "Gcompton.glade", and change it to the full path to it. For example, «/Home/user/gcompton/gcompton.glade», where user is your user (obviously…).
So how about Compton? Do you use any other window composers? Or do they not use composers? Talk, I'm all ears 😛
Good contribution, for many who did not know 🙂 xd, I have been using it for a while, like 2 weeks and the truth is going fast compared to xcompmgr
Yes, the truth: xcompmgr did not convince me (very simple), and Cairo Composite ... Well, give 50MB for a composer? OO Not even having a good PC… Compton was the salvation. It was just what I wanted 😀
that's why I had stopped using composer xd, it's what we all look for for composer * - *
The problem with Cairo-compmgr we all know what it is, and it is when we open the submenus with the right button. 50Mb is nothing compared to what Compiz used for example (and I liked it when it was still just Beryl)
Fuck I didn't even remember Beryl ... what times 😀
Actually yes! Very annoying about the right click 🙁
In full anniversary and celebrating it with excellent articles !!! thanks for the recommendation, I'll try it right away
Well, if I had time today I would have made another one ... But I owe it to you for this week 😉
Thanks AurosZx, great stuff. I'm going to try to install it and test if it works better than with the Xfce Composer, which if I'm not mistaken uses xcompmgr. 😀
I just installed Compton and ran your setup. I love the smoothing of the effects and transitions 😀
Yes, it is the best 😀 It gives a touch of «magic» to light desks ...
Very good info, excellent article, very complete, now nobody has excuses not to try it.
if I have time these days, I try Arch and I will experiment with Openbox this composer !!! Thanks for the information
Speaking of IRC. It should be more accessible. It can't be that I have to go where it says "search" to look for it.
Yup, we will solve this in the new theme, I think it makes a bit of sense to improve this one when the new one is almost 80% ready 🙂
I already want to see that new theme 🙂 Will there be a couple of modifications (or missing fixes) for the mobile theme? It is not necessary, but it would be nice. I can help you try it if you want.
Well, the thing is so. For now we will release the theme for PC as polished as possible. With your help, possible bugs will be corrected and improvements will be added. When everything is 100%, we focus on a theme for mobile phones, because this type of theme has its characteristics and maybe we even put it separately, that is, something like m.desdelinux.net 😀
About the last thing you mention, yeah that's the best.
We would also do that if it is detected that it is from a cell phone, when entering the blog it automatically redirects to this other link, it is simple to do.
Let's hope that day 9 is really set, it has been quite complicated haha
To install it in Xubuntu, do you have to uninstall xcompmgr first?
Not at all, you just have to disable the Xfce composer if you have it enabled.
Excellent: D ...
Now that I'm with lxde and metacity on Debian Wheezy and I didn't know how to activate the metacity composite, but I liked this solution.
By the way for those who try Gcompton edit the file and at the beginning where it comes from
#! / usr / bin / env python2 switch to python
It happened to me to comment it to AurosZx. This is because in Archlinux it would invoke python 3
What a nice shadow drawing, too bad I can't compile it = (
Try installing first:
aptitude install build-essential gcc
Then do the make ... just like the article says. If it doesn't go, you come back here we keep looking at it 🙂
By the way, I am a Debian user, not a Mac user as the portal has detected 😀 (curious)
Open a topic in the forum commenting explaining why it does not compile you and we try to help you ^^
What error do you get? And ... welcome to the site 😀
It gives me this error:
[sourcecode = bash]
Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc '
to the PKG_CONFIG_PATH environment variable
No package 'x11 ′ found
Package xcomposite was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcomposite.pc '
to the PKG_CONFIG_PATH environment variable
No package 'xcomposite' found
Package xfixes was not found in the pkg-config search path.
Perhaps you should add the directory containing `xfixes.pc '
to the PKG_CONFIG_PATH environment variable
No package 'xfixes' found
Package xdamage was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdamage.pc '
to the PKG_CONFIG_PATH environment variable
No package 'xdamage' found
Package xrender was not found in the pkg-config search path.
Perhaps you should add the directory containing `xrender.pc '
to the PKG_CONFIG_PATH environment variable
No package 'xrender' found
cc -Wall -c src / compton.c
In file included from src / compton.c: 11: 0:
src / compton.h: 17: 22: fatal error: X11 / Xlib.h: File or directory does not exist
compilation finished.
make: *** [compton.o] Error 1
[/ sourcecode]
We are already debating the issue here 😀
I could already do it but thank you anyway !!
I love how compton feels, besides being exact it's light ~
Good post. I recently spoke with elav and he recommended this composer to me, but since it does not come in the Debian package I was hoping to have some free time to study it, so this post is great for me. Very timely.
Hello, how about someone installed gnome 3 in these last days! because the system does not start me at all, only a black screen remains with a pointer and it just does not start with startx: S
Hello friend at the moment I apply the make, send me this error, I would appreciate it a lot if you help me
root @ vero-pc: / home / vero / c / compton # make
cc -Wall -c src / compton.c
make: cc: The program was not found
make: *** [compton.o] Error 127
thanks in advance
See if you have the package installed gcc
regards
Hi, I have Lubuntu 12.04 and I tried to install this composer, but nevertheless I get this error in the make step:
Package libconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `libconfig.pc '
to the PKG_CONFIG_PATH environment variable
No package 'libconfig' found
make: pcre-config: Program not found
cc -Wall -std = c99 -DCONFIG_LIBCONFIG -DCONFIG_REGEX_PCRE -DCONFIG_REGEX_PCRE_JIT -DCONFIG_LIBCONFIG_LEGACY -c src / compton.c
In file included from src / compton.c: 11: 0:
src / compton.h: 51: 18: fatal error: pcre.h: The file or directory does not exist
compilation finished.
make: *** [compton.o] Error 1
(Note: already install build-essential gcc, the dependencies mentioned in the post except "xproto / x11proto and
xprop, xwininfo / x11-utils »because I found them in my repository. I even installed all the x11proto packages that ended in -dev)
Thank you!
With this I was able to make a Lubuntu work properly Cairo Dock, greetings.
PS: the file I used to install Compton is over here:
https://launchpad.net/~richardgv/+archive/compton/+sourcepub/2965688/+listing-archive-extra
Greetings, I usually include xcompmgr-compton in all the distros that I install, but in the laptops it consumes too much energy, after killing it the battery lasts longer, now I am at the fork house with less consumption.
Shadows and transparencies are very good, it is the same composer that I use, greetings and thanks:]
thanks, I was looking for how to add it to autostar in Manjaro with Openbox 🙂
now to see if it works XD
I had this line
## Compositing
compton ~ / .config / compton.conf &
and add this
compton -cCGf &
in case anyone is interested in knowing 🙂 greetings to all
Well, it turns out that I'm new to linux, I have Lubuntu (with LXDE) and I have the compton installed, I installed it from the package manager, the fact is that it never works for me, I write the codes you gave me and it does nothing, I have it to auto-start with another code and it doesn't do anything for example this one that was passed to me from a web page compton -c -r 16 -l -24 -t -12 -G -b
I have it as the default composition manager, I honestly don't know what to do xD
Light on ram but it eats up 79% of my cpu