From: copycat-killer Date: Fri, 15 Jul 2016 15:48:35 +0000 (+0200) Subject: Merge branch 'master' of https://github.com/copycat-killer/lain X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/ccf210359c40c9ad848cb9e3627349297d0e1739?hp=74bd2eb9918f86f18d4b61d4f34fb57bfc0c9e5a Merge branch 'master' of https://github.com/copycat-killer/lain --- diff --git a/widgets/contrib/task.lua b/widgets/contrib/task.lua index 6f131e2..946966a 100644 --- a/widgets/contrib/task.lua +++ b/widgets/contrib/task.lua @@ -43,7 +43,7 @@ function task:show(scr_pos) local scrp = scr_pos or task.scr_pos end - f = io.popen('task') + f = io.popen('task ' .. task.cmdline) c_text = "" @@ -133,6 +133,7 @@ function task:attach(widget, args) task.timeout = args.timeout or 7 task.scr_pos = args.scr_pos or 1 task.followmouse = args.followmouse or false + task.cmdline = args.cmdline or "next" task.notify_icon = icons_dir .. "/taskwarrior/task.png" task.notify_icon_small = icons_dir .. "/taskwarrior/tasksmall.png"