[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde
Subject:    Re: [kde] Clock
From:       Charles Bacon <crtb () cape ! com>
Date:       2008-02-19 17:33:42
Message-ID: 20080219112146.O874 () tomato ! local
[Download RAW message or body]

Here's my solution: crontab, a tiny shell script, and a suitable .au
file for /dev/au.
  	Chuck Bacon -- crtb@cape.com
  		ABHOR SECRECY -- DEFEND PRIVACY

On Fri, 15 Feb 2008, sean wrote:

> Does anyone know if the clock can be made to chime on the hour, 1/2
> hour, or some optional setting?
>
> 				Thanks
> 				Sean
> ___________________________________________________
> This message is from the kde mailing list.
> Account management:  https://mail.kde.org/mailman/listinfo/kde.
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.

Here's my solution: crontab, a tiny shell script, and a suitable .au
file for /dev/au.
  	Chuck Bacon -- crtb@cape.com
  		ABHOR SECRECY -- DEFEND PRIVACY

----- Add to your .crontab if you have one, otherwise invent your own -----
# Sample crontab entry fires off the cuckoo clock once per hour, exc. at night.
0 8-22 * * * "/home/crtb/music/sounds/cuckoo.clock"

----- copy this along with cuckoo.au into your own bin directory -----
#!/bin/sh
# Play the cuckoo clock for the most recent hour
hr=`date "+%l"`;
while [ $hr -gt 0 ] ; do
    cat ~/bin/cuckoo.au > /dev/audio
    hr=`expr $hr - 1`
done
["cuckoo.au" (AUDIO/Basic)]

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic