6

I've been trying to make xcompmgrto autostart in Lubuntu 11.10 but it just doesn't, I have to start it manually.

I have added the next lines to the autostart script in ~/.config/openbox/

#Run a composite manager
xcompmgr &

But whenever I log in it doesn't do anything, I don't really need any special parameters for it I just want it to start at log in.

How can I make it run automatically at login?

Seth
  • 58,122
Uri Herrera
  • 14,866

3 Answers3

8

First create the autostart folder if it doesnt already exist:

mkdir -p ~/.config/autostart

Then create a xcompmgr desktop file

lxshortcut -o ~/.config/autostart/xcompmgr.desktop

enter image description here

logout and login.

N.B. this picture shows what the xcompmgr.desktop file contains as well how to confirm xcompmgr is running.

enter image description here

fossfreedom
  • 172,746
4

Yes "xcompmgr" alone does nothing. You need to tell it what kind of effects you want, which is what all gibberish at the end of the command is for.

Also you must add the "&" in the end of the command to start xcompmgr in the background. Without that your startup script starts xcompmgr and then waits until it finishes (which it will never do) before continuing with your startup script.

Mine is: xcompmgr -cfF -t-9 -l-11 -r9 -o.95 -D6 &

edit: Here's an explanation for the options I'm using:

"-cfF" "c" is for soft shadows and transparency support, "f" for fade in & fade out when creating and closing windows, and "F" for fade when changing a window's transparency.

"-t-9 -l-11" shadows are offset 9 pixels from top of the window and 11 pixels from the left edge

"-r9" shadow radius is 9 pixels

"-o.95" shadow opacity is set to 0,95

"-D6" the time between each step when fading windows is set to 6 milliseconds.

"&" isn't actually xcompmgr's option, it's a built-in function in the shell itself, sending the command to run in the background.

TenorB
  • 560
0

Have you tried http://www.lubuntutips.com/2011/12/lubuntu-composite-manage-xcompmgr.html#.UbXHE8Clcy4 ?

Just in case the dropbox link is not available:

add a file xcompmgr.desktop to the ~/.config/autostart with the following settings:

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=xcompmgr
Name[en_US]=xcompmgr
Exec=xcompmgr
Comment[en_US]=
StartupNotify=true

Save, restart your system and you should be compositing.

There'a also a lighter compositor: http://lubuntublog.blogspot.com.es/p/compton.html

Cheers, Iberê