X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/aba6c37b9c0517f6f39d4db4a54862b800cc70a8..eabc5b4991db5cb4dc85551a5814a10f633f72b1:/Widgets.md?ds=inline diff --git a/Widgets.md b/Widgets.md index 2138b27..c0a7dd6 100644 --- a/Widgets.md +++ b/Widgets.md @@ -8,17 +8,15 @@ Every widget may take either a table or a list of variables as argument. If it takes a table, you have to define a function variable called `settings` in it: with this you can markup textboxes using predefined variables and do whatever customization you want. -I'll give an example: +Here follows a simple example, see the sections for all the details: mycpu = lain.widgets.cpu({ timeout = 4, settings = function() - widgets:set_markup("Cpu " .. usage) + widget:set_markup("Cpu " .. usage) end }) -check the sections for all the details. - - [alsa](https://github.com/copycat-killer/lain/wiki/alsa) - [alsabar](https://github.com/copycat-killer/lain/wiki/alsabar) - [bat](https://github.com/copycat-killer/lain/wiki/bat)