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: screenshot3.png>>

Attachment: gmail.lua
Description: Binary data

Reply via email to