X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/669112020d022b3b9cb023c82230e21d36aa88cf..b87b05203ed0b2f6c0dcfc342de0916e15547f17:/widgets/yawn/init.lua?ds=inline 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