X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/7c26a6028abe49d5976bd941e3b131460ded3f3d..d34fda22b4d7174a52fc5fb214f2af9f1865ee7b:/Widgets.md?ds=inline diff --git a/Widgets.md b/Widgets.md index 1a26b80..8395445 100644 --- a/Widgets.md +++ b/Widgets.md @@ -10,14 +10,14 @@ To markup the textbox, call `widget:set_markup(...)` within `settings`. You can feed `set_markup` with predefined arguments, see the sections for all the details. -`widget` is a textbox, so you can also threat it like any other `wibox.widget.textbox`. +`widget` is a textbox, so you can threat it like any other `wibox.widget.textbox`. Here follows an example: mycpu = lain.widgets.cpu({ timeout = 4, settings = function() - widget:set_markup("Cpu " .. usage) + widget:set_markup("Cpu " .. cpu_now.usage) end })