]> 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:

Created task (markdown)
authorLuke Bonham <copycat-killer@users.noreply.github.com>
Wed, 25 Sep 2013 13:05:56 +0000 (06:05 -0700)
committerLuke Bonham <copycat-killer@users.noreply.github.com>
Wed, 25 Sep 2013 13:05:56 +0000 (06:05 -0700)
task.md [new file with mode: 0644]

diff --git a/task.md b/task.md
new file mode 100644 (file)
index 0000000..8c68ac0
--- /dev/null
+++ b/task.md
@@ -0,0 +1,30 @@
+[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
+
+Attaches a [taskwarrior](http://taskwarrior.org/projects/show/taskwarrior) notification to a widget, and lets to add/search tasks from the promptbox.
+
+    lain.widgets.contrib.task:attach(widget, args)
+
+`args` is an optional table which can contain:
+
+Variable | Meaning | Type | Default
+--- | --- | --- | ---
+`font_size` | Calendar font size | int | 12
+`fg` | Calendar foreground color | string | `beautiful.fg_normal`
+`bg` | Calendar background color | string | `beautiful.bg_normal`
+`position` | Calendar position | string | "top_right"
+`timeout` | Notification timeout seconds | int | 7
+
+`position` possible values are defined [here](http://awesome.naquadah.org/doc/api/modules/naughty.html#notify).
+
+Notification will show the output of `task` command.
+
+You can call the notification with a key binding like this:
+
+    awful.key({ modkey, altkey }, "t", lain.widgets.task.show),
+
+where ``altkey = "Mod1"``.
+
+And you can prompt to add/search a task with key bindings like these:
+
+    awful.key({ modkey,         }, "t", lain.widgets.contrib.task.prompt_add),
+    awful.key({ modkey, "Shift" }, "t", lain.widgets.contrib.task.prompt_search),
\ No newline at end of file