#!/bin/sh

if [ $# != 0 ]; then
   mode=$1
   shift
else
   mode=nose
fi

/usr/bin/X11/xlock \
-mode $mode \
-program '/usr/games/fortune' \
-remote \
-usefirst \
-nice 18 \
-info "Are you a god?" \
-msgfont 10x20 \
-bg '#77A26D' \
-fg '#C8C365' \
-username "Wizard: " \
-password "Magic Word: " \
-validate "Invoking spell..." \
-invalid "Bugger off..." \
$*


