X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/c90ee42b5d0e01775e8c4d46f62dc4e7cf9ce9d2..eabc5b4991db5cb4dc85551a5814a10f633f72b1:/Widgets.md diff --git a/Widgets.md b/Widgets.md index 42021bd..c0a7dd6 100644 --- a/Widgets.md +++ b/Widgets.md @@ -8,12 +8,12 @@ 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 just to take a grasp, see the sections for all the details: +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 })