about summary refs log tree commit diff
path: root/awesome
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-04-08 11:06:59 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-04-08 11:06:59 +0900
commit959e1ef417451b878a56cc46fffb53bc7ded1a58 (patch)
tree3fb3524e5e40bbfcd705cca57167850f7cc9230b /awesome
parent931b1872b2f54334e3a35b05c591492cf998847d (diff)
downloaddotfiles-959e1ef417451b878a56cc46fffb53bc7ded1a58.tar.gz
Snapshot for lab install
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(