about summary refs log tree commit diff
path: root/awesome
diff options
context:
space:
mode:
Diffstat (limited to 'awesome')
-rw-r--r--awesome/.config/awesome/rc.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index faaef28..765c0c6 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -15,6 +15,7 @@ local freedesktop = require"freedesktop"
 
 -- System data library
 local vicious = require"vicious"
+vicious.contrib = require"vicious.contrib"
 
 local boardary = require"boardary"
 
@@ -267,15 +268,16 @@ myplayer:buttons(awful.util.table.join(
 
 -- Create a weather widget
 local myweather = wibox.widget.textbox()
-vicious.register(myweather, vicious.widgets.weather,
+vicious.register(myweather, vicious.contrib.openweather,
                  function (widget, args)
                    if args["{tempf}"] ~= "N/A" then
-                     return (" %s°C %s%%"):format(args["{tempc}"],
+                     return (" %s°C %s%%"):format(args["{temp c}"],
                                                   args["{humid}"])
                    else
                      return ""
                    end
-                 end, 61, "VVNB")
+                 end, 61, {city_id = "1833747",
+                           app_id = "0ac09b4d94a63088b670b6a5ecf6200a"})
 
 -- Create a wibox for each screen and add it
 local taglist_buttons = awful.util.table.join(