#!/bin/bash

############################################################
# Re-Created By : Scott Vandergrift                        #
# Compiz Switch Script                                     #
# Email : scott@pearllinux.com                             # 
############################################################




#####################################################################
zenity --question --text="PLEASE ANSWER NO BELOW IF YOU DO NOT NEED DESKTOP EFFECTS?\n\nAnswer Yes below to turn on Compiz Now\n\nThis will add Magic Lamp Minimize Effect, Wobbly windows, Desktop cube,\n\nand various other effects. Please be Aware that this will also increase\n\nMemory and CPU usage. It may not run smoothly on older systems.If you\n\nuse CompizConfig Settings Manager to add more effects be aware\n\nit may be hard to recover your desktop if you are experimenting\n\nwith this powerful tool do be careful.\n\nPlease check out our Pearl Linux QuickTips help file in your Documents directory." --no-wrap

#If user answers yes, 
###########################################################################
if [ $? -eq 0 ] ; then 

compiz --replace


# If user answers no, then 
#############################################################################
else

xfwm4 --replace

fi


exit 0
