1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2025-01-10 17:58:09 +00:00

added weather

This commit is contained in:
kelpine 2014-05-08 11:21:08 -05:00
parent b995e8371f
commit 4f2a74e8e8

View file

@ -74,6 +74,7 @@ graphics = "gimp"
mail = terminal .. " -e mutt "
iptraf = terminal .. " -g 180x54-20+34 -e sudo iptraf-ng -i all "
musicplr = terminal .. " -g 130x34-320+16 -e ncmpcpp "
yahoo_oid = "2972"
local layouts = {
awful.layout.suit.floating,
@ -117,6 +118,15 @@ mytextclock = awful.widget.textclock(" %a %d %b %H:%M")
-- calendar
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
mailicon = wibox.widget.imagebox(beautiful.widget_mail)
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(mailicon)
--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(memicon)
right_layout:add(memwidget)