#!/bin/bash

# I always forget to remove the tea bag from my cup in time therefore ruining it; sometimes I ruin 2-3 teas in a row :-)
# this script has been quite helpful and since I started using it no more wasted tea bags!

# I keep it in ~/bin and call it from a Gnome top panel custom launcher; as icon I use /usr/share/icons/hicolor/48x48/apps/typing-monitor.png

# this script relies upon libnotify (notify-send), vorbis-tools (ogg123), make sure these packages are installed

# if you like your tea to brew for more/less than 3 minutes then modify the DELAY value accordingly, decimals accepted.

# Enjoy your tea!
## Nux <nux@li.nux.ro>

DELAY=3
notify-send -i /usr/share/icons/gnome/scalable/emblems/emblem-default.svg "Another notification will be sent in $DELAY minutes"
sleep `perl -e "print $DELAY * 60"` ; ogg123 /usr/share/sounds/freedesktop/stereo/complete.oga
NOW=$(date +"%T")
notify-send -t 0 -i /usr/share/icons/gnome/scalable/emblems/emblem-urgent.svg "The tea is ready @ $NOW"

