mirror of https://github.com/lcpz/lain.git
Updated calendar (markdown)
This commit is contained in:
parent
540a1af279
commit
7a6e392d09
|
@ -1,11 +1,11 @@
|
||||||
Attaches a calendar notification to a widget.
|
Attaches a calendar notification to a widget.
|
||||||
|
|
||||||
lain.widgets.calendar:attach(mywidget)
|
lain.widgets.calendar:attach(widget)
|
||||||
|
|
||||||
- Left click: switch to previous month.
|
- Left click: switch to previous month.
|
||||||
- Right click: switch to next 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 bg and fg colors arguments, both or just one:
|
||||||
|
|
||||||
lain.widgets.calendar:attach(mytextclock, "#FFFFFF", "#000000")
|
lain.widgets.calendar:attach(mytextclock, "#FFFFFF", "#000000")
|
||||||
-- or
|
-- or
|
||||||
|
@ -13,6 +13,8 @@ Optionally you can call the function with background and foreground colors argum
|
||||||
-- or
|
-- or
|
||||||
lain.widgets.calendar:attach(mytextclock, nil, "#000000")
|
lain.widgets.calendar:attach(mytextclock, nil, "#000000")
|
||||||
|
|
||||||
|
default bg and fg colors are `beautiful.bg_normal` and `beautiful.fg_focus`.
|
||||||
|
|
||||||
Notification will show an icon displaying current day, and formatted output
|
Notification will show an icon displaying current day, and formatted output
|
||||||
from ``cal`` with current day highlighted.
|
from ``cal`` with current day highlighted.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue