Sound alarm on event notification
Personally, I'd like an alarm to sound not necessarily on a fixed timer or repeat but when an event is completed. For example, when my wget finishes. So I'd want something like:
wget -c http://blah.com/foo.tar.gz || sound-alarm
sound-alarm would probably be something like "echo 1 > /var/run/alarm-clock", where alarm-clock would be a FIFO. This would then make a noise or do whatever it is configured to do. Alternatively it would push some sort of serialized object about the title of the event, etc, for use in what is shown using libnotify. Just a brainstorm.
I'll probably implement this this week, if you don't want to / don't want it merged into trunk (I understand).
Imported from Launchpad using lp2gh.
- date created: 2012-01-08T13:14:06Z
- owner: o-corey
- the launchpad url was https://bugs.launchpad.net/bugs/913403
(by joh) Interesting use case, although I think it's slightly of of scope for Alarm Clock ;)
A simple script should do the trick though. You can use 'notify-send' to send the notification and aplay/mplayer/gst-launch to play a sound.