mirror of https://github.com/lcpz/lain.git
yawn: forecast string fix
This commit is contained in:
parent
8af4a03c75
commit
b87b05203e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue