From 959e1ef417451b878a56cc46fffb53bc7ded1a58 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 8 Apr 2022 11:06:59 +0900 Subject: Snapshot for lab install --- awesome/.config/awesome/rc.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'awesome/.config/awesome') 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( -- cgit 1.4.1