From 5b266ecf16c30674abb42f49acfb003c86564531 Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Sat, 15 Jul 2017 14:35:45 +0200 Subject: [PATCH] widget.contrib.task: use shell for spawn_cmd, set title to static 'task next' --- widget/contrib/task.lua | 10 +++++----- wiki | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.5