X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/82d4aa066309b80e870a3b0b8e346b888cae4004..8bc29ccaa72dc1d05b3d42d714182a5dd4bebde8:/calendar.md?ds=sidebyside diff --git a/calendar.md b/calendar.md index 06e1b48..5b4587d 100644 --- a/calendar.md +++ b/calendar.md @@ -1,11 +1,13 @@ -Attaches a calendar to a ``widget``. Example: +[<- widgets](https://github.com/copycat-killer/lain/wiki/Widgets) - lain.widgets.calendar:attach(mytextclock) +Attaches a calendar notification to a widget. + + lain.widgets.calendar:attach(widget) - Left click: switch to previous month. - Right click: switch to next month. -Optionally you can call the function with background and foreground colors arguments, both or just one: +Optionally you can call the function with fg and bg colors arguments, both or just one: lain.widgets.calendar:attach(mytextclock, "#FFFFFF", "#000000") -- or @@ -13,6 +15,8 @@ Optionally you can call the function with background and foreground colors argum -- or lain.widgets.calendar:attach(mytextclock, nil, "#000000") +default fg and fb colors are `beautiful.fg_focus` and `beautiful.bg_normal`. + Notification will show an icon displaying current day, and formatted output from ``cal`` with current day highlighted.