From 9f84c0364c74e6333fe91b4f3b62c03e59c690c6 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Sat, 15 Nov 2014 13:22:01 +0100 Subject: [PATCH] #63 fix --- lain | 2 +- rc.lua.multicolor | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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