X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..252df73e572f4befdd1f7849c77656187b86dc61:/widget/contrib/task.lua?ds=inline 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,