LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to play a sound with gmail notification when email arrives ? (https://www.linuxquestions.org/questions/linux-general-1/how-to-play-a-sound-with-gmail-notification-when-email-arrives-579967/)

frenchn00b 08-26-2007 01:24 PM

How to play a sound with gmail-notify when email arrives ?
 
With X, with the gmail-notify http://gmail-notify.sourceforge.net/download.php or any alternative
thank you

XavierP 08-26-2007 01:35 PM

What sort of notifier is it? Is it a Firefox add on or a separate tool in the system tray? For example, I use the add on Gmail Manager - there is a place in the preferences for me to have it play a sound when I get a mail.

frenchn00b 08-26-2007 09:20 PM

Quote:

Originally Posted by XavierP (Post 2871320)
What sort of notifier is it? Is it a Firefox add on or a separate tool in the system tray? For example, I use the add on Gmail Manager - there is a place in the preferences for me to have it play a sound when I get a mail.

I was meaning gmail-notify (updated)
http://gmail-notify.sourceforge.net/download.php

Or anything else would be interesting. How do you do that ?

XavierP 08-27-2007 03:34 PM

Nice app - I haven't used it so can't be of much help with the innards of it. I use Gmail Manager - the Firefox add on. It allows me to monitor multiple accounts and other things.

frenchn00b 05-02-2008 07:37 PM

I have found we have to go into :


Code:

/usr/lib/gmail-notify$
 gedit  notifier.py

and add sthg like

execp ()
or system ()

I tried but i cannot make it ... RFM
Code:

play /usr/share/gnubiff/coin.wav
:(

gozo311 06-20-2010 11:43 PM

I have it working...
 
This is what I did. You need to install mplayer (or some other command-line audio player). I'm sure there are better ways to do this, but my way will get you any customized sound you want very quickly.

Install mplayer and put this line inside the show_popup(self) function in notifier.py
Code:

os.system("mplayer /home/dave/Music/sounds/Yeeeah\!.mp3")
For me this is at line 278. And I obviously have an mp3 file at the path above. Restart gmail-notifier and it should work like a charm.

frenchn00b 06-21-2010 12:09 AM

Quote:

Originally Posted by gozo311 (Post 4009767)
This is what I did. You need to install mplayer (or some other command-line audio player). I'm sure there are better ways to do this, but my way will get you any customized sound you want very quickly.

Install mplayer and put this line inside the show_popup(self) function in notifier.py
Code:

os.system("mplayer /home/dave/Music/sounds/Yeeeah\!.mp3")
For me this is at line 278. And I obviously have an mp3 file at the path above. Restart gmail-notifier and it should work like a charm.



I have made mutt + mbsmtp + fetchmail working...
it is possible to make it with fetchmail -rk or something like that...
and a sleep function

you would like the files? I had no time to code this script. There is so much to do for LINUX, so much lack of useful bash scripts


All times are GMT -5. The time now is 03:21 PM.