Skip to content
Luke Bonham edited this page Feb 10, 2014 · 29 revisions

<- widgets

Attaches a 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 Notifcation font size int 12
fg Notification popup foreground color string beautiful.fg_normal
bg Notification popu background color string beautiful.bg_normal
position Notification popup position string "top_right"
timeout Notification timeout seconds int 7

position possible values are defined here.

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.contrib.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),
Clone this wiki locally