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/b87b05203ed0b2f6c0dcfc342de0916e15547f17?ds=sidebyside;hp=8af4a03c754fa1bcac24736633f1b3be8ce8888c 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