Clock
Charles Bacon
crtb at cape.com
Tue Feb 19 17:33:42 GMT 2008
Here's my solution: crontab, a tiny shell script, and a suitable .au
file for /dev/au.
Chuck Bacon -- crtb at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cuckoo.au
Type: audio/basic
Size: 6400 bytes
Desc:
URL: <http://mail.kde.org/pipermail/kde/attachments/20080219/8a23e61c/attachment.au>
-------------- next part --------------
___________________________________________________
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.
More information about the kde
mailing list