mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
mail localizated
This commit is contained in:
parent
0d58f65a28
commit
f3a011e3fd
|
@ -18,6 +18,7 @@ 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)
|
||||||
|
@ -327,7 +328,7 @@ vicious.register(mygmail, vicious.widgets.gmail,
|
||||||
notify_title = "Hai un nuovo messaggio"
|
notify_title = "Hai un nuovo messaggio"
|
||||||
notify_text = '"' .. args["{subject}"] .. '"'
|
notify_text = '"' .. args["{subject}"] .. '"'
|
||||||
else
|
else
|
||||||
notify_title = "Hai " .. noti .. " nuovi messaggi"
|
notify_title = "Hai " .. args["{count}"] .. " nuovi messaggi"
|
||||||
notify_text = 'Ultimo: "' .. args["{subject}"] .. '"'
|
notify_text = 'Ultimo: "' .. args["{subject}"] .. '"'
|
||||||
end
|
end
|
||||||
naughty.notify({ title = notify_title, text = notify_text,
|
naughty.notify({ title = notify_title, text = notify_text,
|
||||||
|
@ -367,14 +368,6 @@ function(widget, args)
|
||||||
end
|
end
|
||||||
end, 1)
|
end, 1)
|
||||||
|
|
||||||
-- Mem widget
|
|
||||||
memwidget = wibox.widget.textbox()
|
|
||||||
vicious.register(memwidget, vicious.widgets.mem, gray .. "Mem " .. coldef .. white .. "$2 " .. coldef, 13) -- in Megabytes
|
|
||||||
|
|
||||||
-- Temp widget
|
|
||||||
tempwidget = wibox.widget.textbox()
|
|
||||||
vicious.register(tempwidget, vicious.widgets.thermal, gray .. "Temp " .. coldef .. white .. "$1 " .. coldef, 9, {"coretemp.0", "core"} )
|
|
||||||
|
|
||||||
-- /home fs widget
|
-- /home fs widget
|
||||||
fshwidget = wibox.widget.textbox()
|
fshwidget = wibox.widget.textbox()
|
||||||
too_much = false
|
too_much = false
|
||||||
|
@ -525,7 +518,7 @@ netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.u
|
||||||
|
|
||||||
-- Weather widget
|
-- Weather widget
|
||||||
require("perceptive")
|
require("perceptive")
|
||||||
perceptive.register(123456) -- see https://github.com/copycat-killer/perceptive
|
perceptive.register(725051)
|
||||||
|
|
||||||
-- Separators
|
-- Separators
|
||||||
spr = wibox.widget.textbox(' ')
|
spr = wibox.widget.textbox(' ')
|
||||||
|
@ -624,10 +617,6 @@ for s = 1, screen.count() do
|
||||||
right_layout:add(spr)
|
right_layout:add(spr)
|
||||||
right_layout:add(perceptive.icon)
|
right_layout:add(perceptive.icon)
|
||||||
right_layout:add(perceptive.widget)
|
right_layout:add(perceptive.widget)
|
||||||
--right_layout:add(spr)
|
|
||||||
--right_layout:add(memwidget)
|
|
||||||
--right_layout:add(spr)
|
|
||||||
--right_layout:add(tempwidget)
|
|
||||||
right_layout:add(fshwidget)
|
right_layout:add(fshwidget)
|
||||||
right_layout:add(batwidget)
|
right_layout:add(batwidget)
|
||||||
right_layout:add(netwidget)
|
right_layout:add(netwidget)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -324,6 +324,9 @@ function (widget, args)
|
||||||
if (args["{count}"] > 1) then
|
if (args["{count}"] > 1) then
|
||||||
notify_title = "Hai " .. args["{count}"] .. " nuovi messaggi"
|
notify_title = "Hai " .. args["{count}"] .. " nuovi messaggi"
|
||||||
notify_text = 'Ultimo: "' .. args["{subject}"] .. '"'
|
notify_text = 'Ultimo: "' .. args["{subject}"] .. '"'
|
||||||
|
else
|
||||||
|
notify_title = "Hai un nuovo messaggio"
|
||||||
|
notify_text = args["{subject}"]
|
||||||
end
|
end
|
||||||
naughty.notify({ title = notify_title, text = notify_text,
|
naughty.notify({ title = notify_title, text = notify_text,
|
||||||
timeout = 7,
|
timeout = 7,
|
||||||
|
|
Loading…
Reference in a new issue