#!/bin/bash

if [ -z "$DISPLAY" ]
then
    clear
    echo 'This program requires Microsoft Windows (Yeah, *RIGHT!*)'
    exit 1
fi

X=$(($RANDOM/688))

case $X in
    1) A=ant;; 2) A=bat;; 3) A=blot;; 4) A=bouboule;; 5) A=bounce;; 6) A=braid;;
    7) A=bug;; 8) A=clock;; 9) A=demon;; 10) A=eyes;; 11) A=flag;; 12) A=flame;;
    13) A=forest;; 14) A=galaxy;; 15) A=geometry;; 16) A=grav;; 17) A=helix;;
    18) A=hop;; 19) A=hyper;; 20) A=image;; 21) A=kaleid;; 22) A=laser;;
    23) A=life;; 24) A=life1d;; 25) A=life3d;; 26) A=lissie;; 27) A=marquee;;
    28) A=maze;; 29) A=mountain;; 30) A=nose;; 31) A=petal;; 32) A=puzzle;;
    33) A=pyro;; 34) A=qix;; 35) A=rock;; 36) A=rotor;; 37) A=shape;;
    38) A=slip;; 39) A=sphere;; 40) A=spiral;; 41) A=spline;; 42) A=swarm;;
    43) A=swirl;; 44) A=triangle;; 45) A=wator;; 46) A=world;; 47) A=worm;;
    48) A=blank;; 49) A=random;;
esac

if [ $(ps ax | grep -c xlock) -gt 1 ]
then
    killall -9 xlock
fi
xlock -inroot -mode $A &
echo $A
exit 0

    Source: geocities.com/thetropics/5011/scripts

               ( geocities.com/thetropics/5011)                   ( geocities.com/thetropics)