From: Luke Bonham Date: Sat, 15 Jul 2017 12:35:45 +0000 (+0200) Subject: widget.contrib.task: use shell for spawn_cmd, set title to static 'task next' X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/5b266ecf16c30674abb42f49acfb003c86564531?ds=inline;hp=--cc widget.contrib.task: use shell for spawn_cmd, set title to static 'task next' --- 5b266ecf16c30674abb42f49acfb003c86564531 diff --git a/widget/contrib/task.lua b/widget/contrib/task.lua index ba79553..69d9fd0 100644 --- a/widget/contrib/task.lua +++ b/widget/contrib/task.lua @@ -31,10 +31,10 @@ function task.show(scr) task.notification_preset.screen = scr end - helpers.async(task.show_cmd, function(f) + helpers.async({ awful.util.shell, "-c", task.show_cmd }, function(f) task.notification = naughty.notify({ preset = task.notification_preset, - title = task.show_cmd, + title = "task next", text = markup.font(task.notification_preset.font, awful.util.escape(f:gsub("\n*$", ""))) }) @@ -49,9 +49,9 @@ function task.prompt() helpers.async(t, function(f) naughty.notify { preset = task.notification_preset, - title = t, - text = markup.font(task.notification_preset.font, - awful.util.escape(f:gsub("\n*$", ""))) + title = t, + text = markup.font(task.notification_preset.font, + awful.util.escape(f:gsub("\n*$", ""))) } end) end, diff --git a/wiki b/wiki index 15bc851..d25b127 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 15bc8513bed9cad33cc1d38e4d49a1f4f6008be0 +Subproject commit d25b127c9e534582a399a670b972afa1ff72af37