coffen
January 6th, 2008, 09:52 AM
I need to write a script for my 8 year old daughter (a Happy new Ubuntu user :)) that toggles compiz on or off.
The laptop she is using has Intel X3100 and video playback will not work if compiz is running.
I need the script to do the same thing as if the user checks none or custom on the Visual effects tab (see attached picture).
I assume checking the none button is equivalent to metacity --replace and checking the custom button is equivalent to compiz --replace
Am I correct?
To be able to write a toggle script I need a way to figure out if compiz is running or not. The script should turn it on if it is off and vice versa.
How can I check if it is running or not?
The laptop she is using has Intel X3100 and video playback will not work if compiz is running.
I need the script to do the same thing as if the user checks none or custom on the Visual effects tab (see attached picture).
I assume checking the none button is equivalent to metacity --replace and checking the custom button is equivalent to compiz --replace
Am I correct?
To be able to write a toggle script I need a way to figure out if compiz is running or not. The script should turn it on if it is off and vice versa.
How can I check if it is running or not?