First do this,
For anyone who would like or needs to change between compiz and metacity here's a way you can easily toggle between the two.
Open a blank text file and insert this code:
Code:
#!/bin/sh
# click to start, click to stop
if pidof compiz.real | grep [0-9] > /dev/null
then
exec metacity --replace
else
exec compiz --replace -c emerald
fi
Save the file with a convenient name (compiz_start) and make it executable. (Right click > Properties > Permissions > check: allow executing this file as a program)
Now you can double-click this file and choose run or make a launcher on your panel pointing to this file.
Note: If you are not using Emerald just use 'compiz --replace'.
Then do this,
1. Save the script to your user's home. (I called it compiz_start)
2. open a terminal & chmod 777 '/home/"your_name"/compiz_start'
3. Right click on a panel & select a "custom launcher"
4. call it whatever you want & in the command area put: /home/"your_name"/compiz_start
5. test it out
I used my Emerald icon.
This will give you a panel icon. If compiz is OFF, clicking the icon runs the script, and vise versa.
You can also check out the thread on the Ubuntu forums.
http://ubuntuforums.org/showthread.php?t=489341