Skip to content

Instantly share code, notes, and snippets.

@ggarlic
Created March 27, 2013 08:58
Show Gist options
  • Save ggarlic/5252804 to your computer and use it in GitHub Desktop.
Save ggarlic/5252804 to your computer and use it in GitHub Desktop.
#!/bin/bash
while inotifywait -e moved_to ~/.mail/{gmail,work}/inbox/new/; do
notify-send -i /usr/share/icons/Humanity/status/48/dialog-info.svg "You've got a new mail.'"
aplay -q ~/.mybashscripts/mail.wav
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment