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.
1 [<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets)
3 Attaches a calendar notification to a widget.
5 lain.widgets.calendar:attach(widget, args)
7 - Left click: switch to previous month.
8 - Right click: switch to next month.
10 `args` is an optional table which can contain:
12 Variable | Meaning | Type | Default
14 `icons` | Path to calendar icons | string | [lain/icons/cal/white](https://github.com/copycat-killer/lain/tree/master/icons/cal/white)
15 `font_size` | Calendar font size | int | 12
16 `fg` | Calendar foreground color | string | `beautiful.fg_normal`
17 `bg` | Calendar background color | string | `beautiful.bg_normal`
18 `position` | Calendar position | string | "top_right"
20 `position` possible values are defined [here](http://awesome.naquadah.org/doc/api/modules/naughty.html#notify).
22 Notification will show an icon displaying current day, and formatted output
23 from ``cal`` with current day highlighted.
25 You can call the notification with a key binding like this:
27 awful.key({ altkey }, "c", function () lain.widgets.calendar:show(7) end),
29 where ``altkey = "Mod1"`` and ``show`` argument is an optional integer, meaning timeout seconds.