diff --git a/lain b/lain index b0eec6c..30658f6 160000 --- a/lain +++ b/lain @@ -1 +1 @@ -Subproject commit b0eec6c5a8551f22e3c08c6aa0c0ad1b0b748250 +Subproject commit 30658f602bff127945b0a5acee551fd58eb226fc diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 6baeb23..14fb02d 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -207,6 +207,12 @@ netupicon = wibox.widget.imagebox(beautiful.widget_netup) --netupicon.align = "middle" netupinfo = lain.widgets.net({ settings = function() + if string.match(iface,"network off") and + string.match(yawn.widget._layout.text, "N/A") + then + yawn.fetch_weather() + end + widget:set_markup(markup("#e54c62", net_now.sent .. " ")) netdowninfo:set_markup(markup("#87af5f", net_now.received .. " ")) end