summaryrefslogtreecommitdiff
path: root/email-widget
diff options
context:
space:
mode:
Diffstat (limited to 'email-widget')
-rw-r--r--email-widget/README.md3
-rw-r--r--email-widget/email.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/email-widget/README.md b/email-widget/README.md
index cb55568..3833f14 100644
--- a/email-widget/README.md
+++ b/email-widget/README.md
@@ -14,7 +14,8 @@ To install it put **email.lua** and **email-widget** folder under **~/.config/aw
- add widget to awesome:
```lua
-require("email")
+local email_widget, email_icon = require("email")
+
...
s.mytasklist, -- Middle widget
{ -- Right widgets
diff --git a/email-widget/email.lua b/email-widget/email.lua
index f7656fb..df80678 100644
--- a/email-widget/email.lua
+++ b/email-widget/email.lua
@@ -40,3 +40,5 @@ local function show_emails()
end
email_icon:connect_signal("mouse::enter", function() show_emails() end)
+
+return email_widget, email_icon