Hi,
I’ve been trying to disable compiz when running on battery. It’s easy by using:
DISPLAY=:0 metacity --replace
The problem is when trying to make the script to return to compiz when power cord is plugged back in.
So far I’ve seen the command
DISPLAY=:0 compiz-manager --replace
does it, at least in theory. my problem is that when I use it, the alt-tab behaviour changes to the default one, “application switcher”, instead of “shift switcher (cover)”. Every other plugin or else stays correctly configured.
When instead using
DISPLAY=:0 compiz --replace
apart from the alt tab behaviour, also the window decorations stop working and there is no window decoration at all.
So what is the right way of returning from metacity on a live X session to compiz? Fusion-icon does everything correctly (that little blue icon) but it obviously isn’t automatic.
Anyone can help?
Thank you in advance,
Alex
PS: I’m trying to run these scripts in /etc/pm/power.d. It happens that there is another problem: They don’t get executed when the power cord is pulled out or plugged back in. I’ll try later with laptop-mode-tools or something, as the main problem is to get the scripts to work correctly first.