diff options
author | streetturtle <streetturtle@gmail.com> | 2017-01-30 21:38:50 -0500 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2017-01-30 21:40:01 -0500 |
commit | c4826fd21340d34e3592b0c8ca24fc068e52c6ef (patch) | |
tree | dbbc8fd3df693cfc57cbc1ff5246164f8fc41c01 /EmailWidget/README.md | |
parent | a079c79ab81a4bc2f7cf7971db6373fefe1e6110 (diff) |
new widgets added
Diffstat (limited to 'EmailWidget/README.md')
-rw-r--r-- | EmailWidget/README.md | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/EmailWidget/README.md b/EmailWidget/README.md deleted file mode 100644 index 6f204ca..0000000 --- a/EmailWidget/README.md +++ /dev/null @@ -1,26 +0,0 @@ -This widget consists of an icon with counter which shows number of unread emails: ![email icon](./emailWidgetScrnsht.png) -and a popup message which appears when mouse hovers over an icon: ![email popup](./emailWidgetScrnsht2.png) - -## Installation - -To install it either clone [EmailWidget](https://github.com/streetturtle/AwesomeWM/tree/master/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: - -```lua -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 seconds - 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: - -``` bash -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]({{site.url}}/2015/09/fix-awesome-freezes) post. |