X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/ac65284aa693d5d65351e2f94f62aca8b4765d05..d41db5f1e83669bbceb901ce4c2b19b9200f1850:/Widgets.md?ds=inline diff --git a/Widgets.md b/Widgets.md index 1a26b80..981e4e1 100644 --- a/Widgets.md +++ b/Widgets.md @@ -10,17 +10,19 @@ 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 }) +If you want to see more complex applications, check [awesome-copycats](https://github.com/copycat-killer/awesome-copycats). + --- - [alsa](https://github.com/copycat-killer/lain/wiki/alsa)