Hi Barkat, Your .netrc should look something like this: machine mail.google.com login your_username password your_password
Regards, Tri On Thu, Apr 22, 2010 at 6:40 AM, Barkat <[email protected]> wrote: > Tri Le <trile7 <at> googlemail.com> writes: > > > > > > > I want to have a gmail widget that display all mail subjects on mouse > over > (to save space in the wibox). I look through many of other users > configurations and google search but could not find example of it > anywhere. With some help from Adrian C. and many hours playing with the > code, > I was able to do it (see screenshot attached). For those who's interested, > here is what I did: > > > > > > - I use vicious widget library > > - edit vicious gmail.lua as attached (gmail.lua can be typically found in > ~/.config/awesome/vicious/widgets/gmail.lua) > > - create gmail widget and tooltip in rc.lua (example below) > > > > > > mygmail = widget({ type = "textbox" }) > > > > mygmail_t = awful.tooltip({ objects = { mygmail }, }) > > > > > > vicious.register(mygmail, vicious.widgets.gmail, > > function (widget, args) > > mygmail_t:set_text(args["{subject}"]) > > > > return 'gmail: <span color="white" weight="bold">'..args > ["{count}"]..'</span> | ' > > > > > > end, 127) > > > > - add mygmail to your wibox and that's it. > > > > > > Attachment (gmail.lua): application/octet-stream, 2514 bytes > > > can u post netrc example I have tried the one in example file but it > doesn't > seem to work count is stuck to 0 > > > -- > To unsubscribe, send mail to [email protected]. >
