This question here seems to tangentially touch upon it but I cannot get it to work. Here is my LUA file:
function conky_myeval()
local myTable = { " Old London :normal:size=7", "Ethnocentric :normal:size=7"}
var1 = myTable[ math.random( #myTable)]
return var1
end
and the related conky part:
${font ${lua conky_myeval}} Hello World!
Thank you for any assistance and I apologize if this has been asked before; The most similar I found I posted above.
I've found it easier to have a lua script pass conky a string that can be parsed by a
lua_parseobject that then generates the intended object rather than trying to pass a value to the intended object.In the case of random fonts, I'd do something like the following, which worked when tested.
Lua file:
Conky part: