#!/bin/sh
#
# This script provides a dialog to turn the metacity compositor on/off
# Written by George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums)

Xdialog --wrap --title "Enable metacity compositor?"\
        --yesno "The metacity compositor is disabled by
	default since there are problems when
	used with some video drivers.
	
	If the compositor creates any problems, you
	can turn the metacity compositor off by running:
	
	metacity-compositor off
	
	from a linux console.
	
	Do you want to have the metacity compositor enabled?" 22 70

case $? in
  0)
    metacity-compositor on;;
  1)
    metacity-compositor off;;
esac
