Skip to content

Instantly share code, notes, and snippets.

@sergejx
Created January 20, 2010 13:12
Show Gist options
  • Save sergejx/281832 to your computer and use it in GitHub Desktop.
Save sergejx/281832 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Notify me at specified time using `at' and `notify-send'
# Strings
TITLE="Notify At…"
QUESTION="When to notify you?"
DEFAULT="now +10min"
NOTIFICATION="You have been notified!"
# Code
TIMESPEC=$(zenity --entry --title "$TITLE" --text "$QUESTION" --entry-text "$DEFAULT")
at $TIMESPEC <<CMD
notify-send "$NOTIFICATION"
CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment