From: Luke Bonham Date: Tue, 25 Jul 2017 15:21:36 +0000 (+0200) Subject: weather: added showpopup option; closes #352 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/721ae4b7b59f808c0092cb6380ab8fa93b25a474?ds=sidebyside weather: added showpopup option; closes #352 --- diff --git a/widget/weather.lua b/widget/weather.lua index 1098146..82c8ebf 100644 --- a/widget/weather.lua +++ b/widget/weather.lua @@ -53,6 +53,7 @@ local function factory(args) end local weather_na_markup = args.weather_na_markup or " N/A " local followtag = args.followtag or false + local showpopup = args.showpopup or "on" local settings = args.settings or function() end weather.widget:set_markup(weather_na_markup) @@ -162,7 +163,7 @@ local function factory(args) end) end - weather.attach(weather.widget) + if showpopup == "on" then weather.attach(weather.widget) end weather.timer = helpers.newtimer("weather-" .. city_id, timeout, weather.update, false, true) weather.timer_forecast = helpers.newtimer("weather_forecast-" .. city_id, timeout, weather.forecast_update, false, true) diff --git a/wiki b/wiki index 6665752..bb1a4d4 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 666575233da2ff2f7973320ec69ddf403454b400 +Subproject commit bb1a4d45d8ec98109167a53a4ebf2ef9017843c3