awesome-wm-widgets/EmailWidget
streetturtle d3f0f72cd2 typo 2015-12-25 23:40:04 +01:00
..
README.md typo 2015-12-25 23:40:04 +01:00
email.lua eMail widget 2015-08-29 09:18:20 +02:00
emailWidgetScrnsht.png screenshots 2015-12-25 23:39:13 +01:00
emailWidgetScrnsht2.png screenshots 2015-12-25 23:39:13 +01:00
getUnreadEmails.py eMail widget 2015-08-29 09:18:20 +02:00
getUnreadEmailsNum.py eMail widget 2015-08-29 09:18:20 +02:00
mail.png eMail widget 2015-08-29 09:18:20 +02:00

README.md

This widget consists of an icon with counter which shows number of unread emails: email icon and a popup message which appears when mouse hovers over an icon: email popup

Installation

To install it either clone EmailWidget project under ~/.config/awesome/ or download a .zip archive and unzip it there.

After provide your credentials in python scripts so that they could connect to server and add following lines in your rc.lua file:

require("email")
...
right_layout:add(emailWidget_icon)
right_layout:add(emailWidget_counter)

How it works

This widget uses the output of two python scripts, first is called every 5 minutes - it returns number of unread emails and second is called when mouse hovers over an icon and displays content of those emails. For both of them you'll need to provide your credentials and imap server. For testing they can simply be called from console:

python ~/.config/awesome/email/countUnreadEmails.py 
python ~/.config/awesome/email/readEmails.py 

Note that getting number of unread emails could take some time, so instead of pread or spawn_with_shell functions I use DBus, you can read more about it in this post.