]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge branch 'master' of https://github.com/copycat-killer/lain
authorcopycat-killer <dada@archlinux.info>
Fri, 15 Jul 2016 15:48:35 +0000 (17:48 +0200)
committercopycat-killer <dada@archlinux.info>
Fri, 15 Jul 2016 15:48:35 +0000 (17:48 +0200)
widgets/contrib/task.lua

index 6f131e216fe4f925deecc5b7ac65771688959fb1..946966a84b2622e751845577641015ad2fbff744 100644 (file)
@@ -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 = "<span font='"
              .. task.font .. " "
              .. task.font_size .. "'>"
@@ -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"