#!/bin/sh
#
# Start compiz if xgl is started
if pgrep Xgl > /dev/null ; then
        compiz --replace gconf &
        gtk-window-decorator &
elif [ "X_`cat /etc/sysconfig/compiz/aiglx`" == "X_enable" ] ; then
        gtk-window-decorator &
        compiz --replace --indirect-rendering --strict-binding --use-cow gconf &
else
	echo "This version of compiz is no suported by your current X server"
fi
# kb=`gconftool-2 --get /desktop/gnome/peripherals/keyboard/kbd/model`
# gconftool-2 --set --type string /desktop/gnome/peripherals/keyboard/kbd/model none
# gconftool-2 --set --type string /desktop/gnome/peripherals/keyboard/kbd/model $kb


