More detailed Lua example

The following example was written to demonstrate some of what can be done with Lua and Conky. This example displays some widgets as well as an example of what can be done by combining Conky's built in variables with Lua's programming flexibility.

In your conkyrc, add the following:

Save the following Lua script somewhere to be loaded from the above conkyrc:

Try modifying the conky_string_func and conky_int_func Lua code to produce different output.