mirror of https://github.com/lcpz/lain.git
yawn: forecast string fix
This commit is contained in:
parent
f7aa289195
commit
29ede88b15
|
@ -131,9 +131,11 @@ local function fetch_weather()
|
||||||
yawn.icon:set_image(sky)
|
yawn.icon:set_image(sky)
|
||||||
widget = yawn.widget
|
widget = yawn.widget
|
||||||
|
|
||||||
forecast = weather_data:match(": %S+.-,"):gsub(": ", ""):gsub(",", "\n")
|
forecast = weather_data:match(": %S.-,"):gsub(": ", ""):gsub(",", "")
|
||||||
units = units:gsub(" ", "")
|
units = units:gsub(" ", "")
|
||||||
|
|
||||||
|
naughty.notify({text=forecast, timeout=10})
|
||||||
|
naughty.notify({text=units, timeout=10})
|
||||||
settings()
|
settings()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue