summaryrefslogtreecommitdiff
path: root/EmailWidget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2015-12-25 23:39:13 +0100
committerstreetturtle <streetturtle@gmail.com>2015-12-25 23:39:13 +0100
commit64ee6d167cda6749ed39d661b687bed90c961b02 (patch)
treea85a4b00b505813dd1ef1ab41eec800e7229d758 /EmailWidget
parent1b955adc11aad97d3eb9d49a15323516c94a333d (diff)
screenshots
Diffstat (limited to 'EmailWidget')
-rw-r--r--EmailWidget/README.md8
-rw-r--r--EmailWidget/emailWidgetScrnsht.pngbin0 -> 875 bytes
-rw-r--r--EmailWidget/emailWidgetScrnsht2.pngbin0 -> 63784 bytes
3 files changed, 4 insertions, 4 deletions
diff --git a/EmailWidget/README.md b/EmailWidget/README.md
index 729b88f..376b3e5 100644
--- a/EmailWidget/README.md
+++ b/EmailWidget/README.md
@@ -7,20 +7,20 @@ To install it either clone [EmailWidget](https://github.com/streetturtle/Awesome
After provide your credentials in python scripts so that they could connect to server and add following lines in your **rc.lua** file:
-{% highlight lua %}
+```lua
require("email")
...
right_layout:add(emailWidget_icon)
right_layout:add(emailWidget_counter)
-{% endhighlight lua %}
+```
## 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:
-{% highlight bash %}
+``` bash
python ~/.config/awesome/email/countUnreadEmails.py
python ~/.config/awesome/email/readEmails.py
-{% endhighlight bash %}
+```
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.
diff --git a/EmailWidget/emailWidgetScrnsht.png b/EmailWidget/emailWidgetScrnsht.png
new file mode 100644
index 0000000..07b69ce
--- /dev/null
+++ b/EmailWidget/emailWidgetScrnsht.png
Binary files differ
diff --git a/EmailWidget/emailWidgetScrnsht2.png b/EmailWidget/emailWidgetScrnsht2.png
new file mode 100644
index 0000000..e2acc0c
--- /dev/null
+++ b/EmailWidget/emailWidgetScrnsht2.png
Binary files differ