#! /bin/sh ### # # A sort of screen saver using iHook. A temporary solution for # the lack of screen saver at the Mac OS X login screen. # ### PATH=/bin:/usr/bin; export PATH # trap SIGTERM, which iHook sends when the user clicks the cancel button, # and exit cleanly, so iHook goes away without a fuss. trap "exit 0" 15 # set the first background image. echo %BACKGROUND /Some/Custom/Image/Telling/User/How/To/Kill/iHook # enable the cancel button, so the user can kill iHook and login. echo %CANCEL ENABLE echo Click the Cancel button to get to the login screen. sleep 5 # Enter an infinite loop. The user will be killing the process when they # click the cancel button to get back to the login screen. The sleeps give # the user time to click the cancel button. while [ true ]; do # move the iHook window around the screen. You may also want to change # the iHook window size with the %WINDOWSIZE directive. echo %WINDOWPOSITION TOP LEFT sleep 5 echo %WINDOWPOSITION TOP RIGHT echo %BACKGROUND /Another/Custom/Image/Describing/How/To/Login sleep 5 echo %WINDOWPOSITION BOTTOM RIGHT echo %BACKGROUND /Yet/Another/Image sleep 5 echo %WINDOWPOSITION BOTTOM LEFT echo %BACKGROUND /Still/Another/Image sleep 5 echo %WINDOWPOSITION CENTER echo %BACKGROUND /Some/Custom/Image/Telling/User/How/To/Kill/iHook sleep 5 done exit 0