summaryrefslogtreecommitdiff
path: root/email-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2021-05-10 14:40:50 -0400
committerGitHub <noreply@github.com>2021-05-10 14:40:50 -0400
commit11acce45064fc3917d65bc9ed0aedd1a6c1cda46 (patch)
treeeac8a13c456d7ad1ae174a7e83c4f9e26af2c3bc /email-widget
parent2f109c4c2a36ffbe24ff8f6a482664f7383827a7 (diff)
parent05a3ace5dc5ffa44b3fa2d151f9695451c53e831 (diff)
Merge pull request #260 from sclu1034/issue/email-widgets
Fix email widgets being inaccessible
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