danchoi / vmail

a vim interface for gmail
http://danielchoi.com/software/vmail.html
MIT License
786 stars 60 forks source link

Add icon to new mail notifications in Linux #196

Open davewongillies opened 8 years ago

davewongillies commented 8 years ago

Just adds an icon to notifications on Linux for new mail. mail-new is a generic icon and will use the icon from the currently used theme. If it can't find a mail-new icon, it'll just notify without an icon.

notalex commented 8 years ago

I tried this on Ubuntu 14.04:

$ notify-send -i mail-new test

But I see no icon. May I know which flavor of linux this worked for? We could also consider add a config setting for the OSD command.

davewongillies commented 8 years ago

@notalex I did this on Ubuntu 14.04 as well. FWIW, whether the icon appears solely depends on whether the current theme actually has a mail-new icon in its theme pack. If it doesn't, it simply doesn't display icon.

davewongillies commented 8 years ago

@notalex I've updated to use mail_new instead of mail-new, which seems to be used by more themes, but what I can tell, there's no real standard for such an icon. Perhaps adding config for the OSD command will be a better option.