PDA

View Full Version : [ubuntu] Scripting Compiz enable/disable



darkknight045
July 16th, 2009, 09:03 PM
There are some games and functionality that I would like to be able to automate a bit.

Is there a away to enable/disable compiz through bash commands so that upon the game closing I can signal for compiz to start back up with the settings it had before?

mcduck
July 16th, 2009, 10:15 PM
Sure.

"metacity --replace" will replace your current window manager with Metacity, which is the default WM for Gnome.

..and "compiz --replace" will then replace Metacity with Compiz.

finch127
July 18th, 2009, 10:55 PM
Yeah I actually wrote a script for this:

http://ubuntuforums.org/showthread.php?t=1207203

Check it out, if it is indeed what you need.