From: luke bonham Date: Fri, 13 Sep 2013 18:08:51 +0000 (+0200) Subject: yawn: forecast string fix X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/29ede88b15b260a0ea3fd7b20615cd1c175cdb53 yawn: forecast string fix --- diff --git a/widgets/yawn/init.lua b/widgets/yawn/init.lua index 4c90df4..d37fc44 100644 --- a/widgets/yawn/init.lua +++ b/widgets/yawn/init.lua @@ -131,9 +131,11 @@ local function fetch_weather() yawn.icon:set_image(sky) widget = yawn.widget - forecast = weather_data:match(": %S+.-,"):gsub(": ", ""):gsub(",", "\n") + forecast = weather_data:match(": %S.-,"):gsub(": ", ""):gsub(",", "") units = units:gsub(" ", "") + naughty.notify({text=forecast, timeout=10}) + naughty.notify({text=units, timeout=10}) settings() end