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)
7 - Left click: switch to previous month.
8 - Right click: switch to next month.
10 Optionally you can call the function with fg and bg colors arguments, both or just one:
12 lain.widgets.calendar:attach(mytextclock, "#FFFFFF", "#000000")
14 lain.widgets.calendar:attach(mytextclock, "#FFFFFF")
16 lain.widgets.calendar:attach(mytextclock, nil, "#000000")
18 default fg and fb colors are `beautiful.fg_focus` and `beautiful.bg_normal`.
20 Notification will show an icon displaying current day, and formatted output
21 from ``cal`` with current day highlighted.
23 Calendar icons are placed in [lain/icons/cal](https://github.com/copycat-killer/lain/tree/master/icons/cal), default set being ``white``.
25 You can add your own set, and tell lain to use it like this:
27 lain.widgets.calendar.icons_dir = lain.widgets.icons_dir .. "cal/myicons"
29 also, you can set notification font size:
31 lain.widgets.calendar.font_size = 14
35 Finally, you can call the notification with a key binding like this:
37 awful.key({ altkey }, "c", function () lain.widgets.calendar:show(7) end),
39 where ``altkey = "Mod1"`` and ``show`` argument is an optional integer, meaning timeout seconds.