Closed cbrnr closed 10 years ago
Sorry for the very late reply...
Here's how I manage to run compton in lightdm-1.10.1, automatically:
/etc/lightdm/lightdm.conf
:
# ...
[SeatDefaults]
# ...
greeter-setup-script=/usr/local/bin/lightdm-onstart.sh
# ...
/usr/local/bin/lightdm-onstart.sh
: (This file needs to be executable (+x), just in case)
#!/bin/bash
# You need the "&" unless you want LightDM to be struck here
compton &
LightDM mostly likely won't run as your normal user, so you may wish to use a system-wide configuration file (/etc/xdg/compton.conf
) or force compton to load a specific configuration file with --config
(note it doesn't necessarily have the permission to read things in your home directory -- it should be able to if it the greeter-setup-script
is run as root, as indicated in lightdm.conf
, though).
By the way, it might be possible to run compton manually with XAUTHORITY=/var/run/lightdm/root/:0 compton
, or something.
Cool -- works perfectly! Thanks a lot!
Is there a way to make this conditional? For example, to run it before entering an Awesome WM session but not before entering a Gnome session?
I was wondering if I could somehow start compton before my display manager showing the login screen pops up? I'm using lightdm, and it would be nice if the windows there had shadows.