Already tried, it gives me the error: "attempt to index field 'hooks' (a nil 
value)".

According to api documentation [1], there is no more awful.hooks in 3.5.

[1] http://awesome.naquadah.org/doc/api

On 17 Feb 13 ◦ 14:56, Sebastian Lenz wrote:
> -------- Original-Nachricht --------
> Betreff: mail widget for 3.5 (no gmail)
> Von: luke bonham <[email protected]>
> An: Awesome ML <[email protected]>
> Datum: 17.02.2013 14:41
> > Hi folks, 
> > anyone here could share a generic mail widget for Awesome 3.5?
> >
> > I've been trying to use the ones in the User Contributed Widgets section on 
> > the site, but with no luck.
> >
> 
> This one: https://awesome.naquadah.org/wiki/Asmer_imap_mail_widget
> 
> --- Mail updater
> mymail = wibox.widget.textbox()
> mymail.text = "  ?  "
> 
> I thin the hook section is ok right now
> 
> -- Hook (check mail every 30 seconds)
> 
> awful.hooks.timer.register(30, function ()
>     local f = io.open("/home/YOUR_USER/tmp/gmail") 
>     local l = nil
>     if f ~= nil then
>        l = f:read() -- read output of command
>     else
>        l = "  ?  "
>     end
>     f:close()
> 
>     mymail.text = l
>     os.execute("~/scripts/unread.py > ~/tmp/gmail &")
> end)
> 
> 
> Sebastian Lenz
> 
> 

-- 
To unsubscribe, send mail to [email protected].

Reply via email to