#!/bin/sh
if ps -e | grep Xgl > /dev/null
then
    nohup compiz --replace dbus csm > /dev/null &
else
    nohup compiz --strict-binding --indirect-rendering --replace dbus csm > /dev/null &
fi

sleep 2

if [ -f /usr/bin/cgwd ]
then
    nohup cgwd --replace &
else
    nohup gnome-window-decorator --replace &
fi


