Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

matthewhadley/gmail-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

gmail-notifier

Get OSX message center notifications for new unread emails in your gmail inbox. Ideal if you just use the web version of gmail and so don't have a way to have notifications triggered.

notification

Installation

  • clone the repo somewhere then copy the gmail-notifier directory into your /Applications directory (or create a symlink to the cloned repo).
  • make sure you have a keychain entry with your gmail details, where the account value is your gmail address
  • run the notifier script once to, ensure it has the right permissions (you may be prompted togive keychain access)
    • ./gmail-notifier/gmail-notifier -k gmail -o -v # where gmail is the name of your keychain key with your gmail details
  • by default checks for new emails happen every 10 seconds, edit the gmail-notifier/gmail-notifier.plist file if you wish to change that interval
  • configure gmail-notifier run at login with this command launchctl load /Applications/gmail-notifier/com.diffsky.gmail-notifier.plist

You should now start getting notifications.

To deactivate notifications run: launchctl unload /Applications/gmail-notifier/com.diffsky.gmail-notifier.plist

To have gmail-notifier start automatically at login, copy the plist into your LaunchAgents directory: cp /Applications/gmail-notifier/com.diffsky.gmail-notifier.plist ~/Library/LaunchAgents/

Credits

The functionality for displaying the notifications is all from terminal-notifier. A bundled version of that app is provided so that the icon can be modified to look more like gmail (from Janko). This is due to a restriction in notification center that means it only shows app's icon. So there is a forked version of terminal-notifier with this changed icon.

About

OSX notification center alerts for your gmail

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages