mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2025-01-11 02:08:08 +00:00
added weather
This commit is contained in:
parent
b995e8371f
commit
4f2a74e8e8
|
@ -74,6 +74,7 @@ graphics = "gimp"
|
||||||
mail = terminal .. " -e mutt "
|
mail = terminal .. " -e mutt "
|
||||||
iptraf = terminal .. " -g 180x54-20+34 -e sudo iptraf-ng -i all "
|
iptraf = terminal .. " -g 180x54-20+34 -e sudo iptraf-ng -i all "
|
||||||
musicplr = terminal .. " -g 130x34-320+16 -e ncmpcpp "
|
musicplr = terminal .. " -g 130x34-320+16 -e ncmpcpp "
|
||||||
|
yahoo_oid = "2972"
|
||||||
|
|
||||||
local layouts = {
|
local layouts = {
|
||||||
awful.layout.suit.floating,
|
awful.layout.suit.floating,
|
||||||
|
@ -117,6 +118,15 @@ mytextclock = awful.widget.textclock(" %a %d %b %H:%M")
|
||||||
-- calendar
|
-- calendar
|
||||||
lain.widgets.calendar:attach(mytextclock, { font_size = 10 })
|
lain.widgets.calendar:attach(mytextclock, { font_size = 10 })
|
||||||
|
|
||||||
|
-- Weather
|
||||||
|
weathericon = wibox.widget.imagebox(beautiful.widget_weather)
|
||||||
|
yawn = lain.widgets.yawn(yahoo_oid, {
|
||||||
|
settings = function()
|
||||||
|
widget:set_markup(markup("#eca4c4", forecast:lower() .. " @ " .. units .. "°C "))
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
-- Mail IMAP check
|
-- Mail IMAP check
|
||||||
mailicon = wibox.widget.imagebox(beautiful.widget_mail)
|
mailicon = wibox.widget.imagebox(beautiful.widget_mail)
|
||||||
mailicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(mail) end)))
|
mailicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(mail) end)))
|
||||||
|
@ -342,6 +352,12 @@ for s = 1, screen.count() do
|
||||||
right_layout:add(arrl_ld)
|
right_layout:add(arrl_ld)
|
||||||
right_layout:add(mailicon)
|
right_layout:add(mailicon)
|
||||||
--right_layout:add(mailwidget)
|
--right_layout:add(mailwidget)
|
||||||
|
|
||||||
|
right_layout:add(arrl_dl)
|
||||||
|
right_layout:add(weathericon)
|
||||||
|
right_layout:add(yawn.widget)
|
||||||
|
|
||||||
|
|
||||||
right_layout:add(arrl_dl)
|
right_layout:add(arrl_dl)
|
||||||
right_layout:add(memicon)
|
right_layout:add(memicon)
|
||||||
right_layout:add(memwidget)
|
right_layout:add(memwidget)
|
||||||
|
|
Loading…
Reference in a new issue