From d16094bc6811118f778e334a1bbf5fdafd966644 Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Thu, 14 Jul 2016 17:24:38 +0200 Subject: [PATCH] task widget: make command line configurable --- widgets/contrib/task.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5