On Fri, Mar 01, 2002 at 04:22:33PM +1100, Simon Wong wrote:

> Afternoon,
> 
> I am trying to work out a way to get a meassage flashed up on the screen
> once an hour to remind me to have a break (rest my eyes!).
> 
> I set up a cron job like so:
> 
>     echo " Kit Kat" | osd_cat --bottom --offset=500 --color=red
>     --delay=20
>     --font=-adobe-helvetica-*-*-*-*-300-*-100-100-*-*-iso8859-*

This doesn't answer your question, but that, erm, sounds overly
complex :).  Running those things from cron jobs seem like the
wrong way to go (cron jobs are really for non-interactive
processes).

As another solution, I have the following script:

    16:33(0) ~% cat =kitkat
    #!/bin/sh

    while true; do
            sleep 2400      # 2400 seconds = 40 minutes
            /usr/bin/X11/xmessage -center -buttons 'Okie!:0' 'Take a break!'
    done

Just dump that in your .xsession[1] or .xinitrc[2] file.
Substitute osd_cat as you wish, of course.

1. If you use XDM, GDM or KDM
2. If you use "startx" from the commandline


-- 
#ozone/algorithm <[EMAIL PROTECTED]>          - trust.in.love.to.save
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to