alarm-clock icon indicating copy to clipboard operation
alarm-clock copied to clipboard

Sound alarm on event notification

Open joh opened this issue 8 years ago • 1 comments

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

joh avatar Mar 23 '17 21:03 joh

(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.

joh avatar Mar 23 '17 22:03 joh