readded gmail tooltip
This commit is contained in:
parent
103915b52e
commit
0d58f65a28
|
@ -18,7 +18,6 @@ naughty = require("naughty")
|
||||||
vicious = require("vicious")
|
vicious = require("vicious")
|
||||||
scratch = require("scratch")
|
scratch = require("scratch")
|
||||||
|
|
||||||
|
|
||||||
-- Run once function
|
-- Run once function
|
||||||
|
|
||||||
function run_once(cmd)
|
function run_once(cmd)
|
||||||
|
@ -314,9 +313,12 @@ mytextclock:buttons(util.table.join( awful.button({ }, 1, function() add_calenda
|
||||||
|
|
||||||
-- GMail widget
|
-- GMail widget
|
||||||
mygmail = wibox.widget.textbox()
|
mygmail = wibox.widget.textbox()
|
||||||
|
gmail_t = awful.tooltip({ objects = { mygmail },})
|
||||||
notify_shown = false
|
notify_shown = false
|
||||||
vicious.register(mygmail, vicious.widgets.gmail,
|
vicious.register(mygmail, vicious.widgets.gmail,
|
||||||
function (widget, args)
|
function (widget, args)
|
||||||
|
gmail_t:set_text(args["{subject}"])
|
||||||
|
gmail_t:add_to_object(mygmail)
|
||||||
notify_title = "Hai un nuovo messaggio"
|
notify_title = "Hai un nuovo messaggio"
|
||||||
notify_text = '"' .. args["{subject}"] .. '"'
|
notify_text = '"' .. args["{subject}"] .. '"'
|
||||||
if (args["{count}"] > 0 ) then
|
if (args["{count}"] > 0 ) then
|
||||||
|
@ -522,9 +524,8 @@ end, 10)
|
||||||
netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end)))
|
netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end)))
|
||||||
|
|
||||||
-- Weather widget
|
-- Weather widget
|
||||||
-- clone it from https://github.com/copycat-killer/perceptive.git
|
|
||||||
require("perceptive")
|
require("perceptive")
|
||||||
perceptive.register(123456) -- fake code, enter your city one
|
perceptive.register(123456) -- see https://github.com/copycat-killer/perceptive
|
||||||
|
|
||||||
-- Separators
|
-- Separators
|
||||||
spr = wibox.widget.textbox(' ')
|
spr = wibox.widget.textbox(' ')
|
||||||
|
|
|
@ -395,7 +395,7 @@ vicious.register(uptimewidget, vicious.widgets.uptime, brown .. "$2.$3" .. colde
|
||||||
|
|
||||||
-- Gmail widget
|
-- Gmail widget
|
||||||
mygmail = wibox.widget.textbox()
|
mygmail = wibox.widget.textbox()
|
||||||
gmail_t = awful.tooltip({ objects = { mygmail },})
|
gmail_t = awful.tooltip({ objects = { mygmail }})
|
||||||
mygmailimg = wibox.widget.imagebox(beautiful.widget_gmail)
|
mygmailimg = wibox.widget.imagebox(beautiful.widget_gmail)
|
||||||
vicious.register(mygmail, vicious.widgets.gmail,
|
vicious.register(mygmail, vicious.widgets.gmail,
|
||||||
function (widget, args)
|
function (widget, args)
|
||||||
|
|
Loading…
Reference in New Issue