widget.contrib.task: use shell for spawn_cmd, set title to static 'task next'

This commit is contained in:
Luke Bonham 2017-07-15 14:35:45 +02:00
parent c89fc17636
commit 5b266ecf16
2 changed files with 6 additions and 6 deletions

View File

@ -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,

2
wiki

@ -1 +1 @@
Subproject commit 15bc8513bed9cad33cc1d38e4d49a1f4f6008be0
Subproject commit d25b127c9e534582a399a670b972afa1ff72af37