Created
August 25, 2014 05:32
-
-
Save AdrienLemaire/7de4dd13c644fd25520f to your computer and use it in GitHub Desktop.
notification_timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Notification timer, to drop in ~/bin/ | |
function timer () { | |
while [ "$(date "+%H:%M")" != "$exec_time" ] | |
do | |
sleep 60 | |
done | |
notify-send -i dialog-warning "$title" "$message" | |
} | |
echo "When do you want to send the alert? [hh:mm]" | |
read exec_time | |
echo "Title" | |
read title | |
echo "Message" | |
read message | |
timer & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment