#!/bin/bash

# ~/.Xclients file for fvwm2-ade

# When your X server starts, a screen blanker should also start
# automatically.  If you're not sure, look at the man page for xset, or
# go to an X terminal, type
#
#    xset q
#
# and read the information under "Screen Saver:" in the output.  If you
# decide to replace the screen blanking feature of X with xscreensaver,
# make sure you have xscreensaver installed on your system, and
# uncomment the two lines below.

#xset x off
#xscreensaver -timeout 5 &

if [ ! -z $(type -path fvwm2) ]; then

	rm -f /tmp/fvwmrc*
	exec fvwm2 \
	-cmd "FvwmM4 -debug /usr/local/etc/X11/fvwm2-ade/system.fvwm2rc" \
	> $HOME/.fvwm2-ade.errors 2>&1

elif [ ! -z $(type -path fvwm) ]; then

	exec fvwm

else

	exec twm

fi
