From: copycat-killer Date: Sat, 29 Aug 2015 17:46:18 +0000 (+0200) Subject: pull #133: rename notification_text_cmd -> notification_text_fun X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/6aca9e17306d260a4742318d994aee5b181e7aee?ds=inline;hp=-c pull #133: rename notification_text_cmd -> notification_text_fun --- 6aca9e17306d260a4742318d994aee5b181e7aee diff --git a/widgets/weather.lua b/widgets/weather.lua index dacdd41..de3163c 100644 --- a/widgets/weather.lua +++ b/widgets/weather.lua @@ -41,7 +41,7 @@ local function worker(args) local date_cmd = args.date_cmd or "date -u -d @%d +'%%a %%d'" local icons_path = args.icons_path or lain_icons .. "openweathermap/" local notification_preset = args.notification_preset or {} - local notification_text_cmd = args.notification_text_cmd or + local notification_text_fun = args.notification_text_fun or function (day, desc, tmin, tmax) return string.format("%s: %s, %d - %d ", day, desc, tmin, tmax) end @@ -98,7 +98,7 @@ local function worker(args) local desc = weather_now["list"][i]["weather"][1]["description"] weather.notification_text = weather.notification_text .. - notification_text_cmd(day, desc, tmin, tmax) + notification_text_fun(day, desc, tmin, tmax) if i < weather_now["cnt"] then weather.notification_text = weather.notification_text .. "\n" diff --git a/wiki b/wiki index e21f7dd..a24a749 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit e21f7ddbdd05019501136a7cca1ac6c897eae2ce +Subproject commit a24a74924b80b7293d0f4171a855f1eb23ab90cc