NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Timer for X-windows?
Thanks Simon. I got the script working.
It will give me another reason to learn /bin/ksh.
So far, the only thing I learned is PERL. (just because
the syntax and power beat Apple Basic (made in 1984) )
On Fri, Oct 22, 2021 at 10:55 PM Simon Burge <simonb%netbsd.org@localhost> wrote:
>
> Todd Gruhn wrote:
>
> > I have a project I need to time. While I am on the computer, is there
> > an X-widget
> > that allows me to set and time a process, and has an alarm to get my attention?
> > Similar to a stopwatch?
>
> I have this little script that would pop up a reminder to do something
> every 10 minutes.
>
> #!/bin/sh
>
> FONT="-adobe-helvetica-bold-r-normal-*-*-640-*-*-p-*-iso8859-1"
>
> show()
> {
> echo $* | osd_cat -A center -p middle -c red -s 1 -d 1 -f "$FONT"
> }
>
>
> while true; do
> sleep $((10 * 60))
> show $*
> sleep 1
> show $*
> sleep 1
> show $*
> done
>
> osd_cat is in pkgsrc/x11/xosd
>
> I haven't used this in over a decade. It doesn't have a count down
> clock, but you might be able to do something with the alarm bit.
>
> Cheers,
> Simon.
Home |
Main Index |
Thread Index |
Old Index