LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-26-2007, 01:24 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 50
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

Last edited by frenchn00b; 08-26-2007 at 09:24 PM.
 
Old 08-26-2007, 01:35 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 429Reputation: 429Reputation: 429Reputation: 429Reputation: 429
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.
 
Old 08-26-2007, 09:20 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by XavierP View Post
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 ?
 
Old 08-27-2007, 03:34 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 429Reputation: 429Reputation: 429Reputation: 429Reputation: 429
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.
 
Old 05-02-2008, 07:37 PM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
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
 
Old 06-20-2010, 11:43 PM   #6
gozo311
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 1
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.
 
Old 06-21-2010, 12:09 AM   #7
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by gozo311 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
does not play system notification sound on KDE 3.4 sharathg786 Slackware 0 11-02-2006 11:56 PM
Email never arrives via my php script juancha Linux - Newbie 2 02-22-2006 05:37 AM
What do you guys use for Gmail Notification (for Slackware)? gbdavidx Linux - Software 8 01-16-2005 04:06 AM
Play a wav when new mail arrives mamoose Programming 5 04-24-2004 03:40 AM
Email Notification ezra143 LQ Suggestions & Feedback 6 01-12-2004 10:17 AM


All times are GMT -5. The time now is 05:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration