Skip to content

Instantly share code, notes, and snippets.

@AdrienLemaire
Created August 25, 2014 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrienLemaire/7de4dd13c644fd25520f to your computer and use it in GitHub Desktop.
Save AdrienLemaire/7de4dd13c644fd25520f to your computer and use it in GitHub Desktop.
notification_timer
#!/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