#! /bin/sh ### # # Another 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 # fill the screen with the iHook window. Requires iHook 0.8.7. echo %WINDOWSIZE MAX # 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. # Enter an infinite loop. The user will be killing the process when they # click the cancel button to get back to the login screen. while [ true ]; do # change the background image periodically, to give the effect of # a screensaver. note that the Cancel button may cause some burn in, # as it does notchange position, as in the other hook screensaver. you # may want to disable/enable/remove it from time to time. sleep 5 echo %BACKGROUND /Another/Custom/Image/Describing/How/To/Login sleep 5 echo %BACKGROUND /Yet/Another/Image sleep 5 echo %BACKGROUND /Still/Another/Image sleep 5 echo %BACKGROUND /Some/Custom/Image/Telling/User/How/To/Kill/iHook sleep 5 done exit 0