Conky: Lua functions in .conkyrc

Created on 22 Sep 2015  ·  3Comments  ·  Source: brndnmtthws/conky

Since 1.10 .conkyrc is a lua file, but it seems custom functions still need to be defined in a seperate file and loaded with lua_load, wouldn't it make sense to define them in .conkyrc already?

question

All 3 comments

@plikhari may be able to answer this question. He's a black belt in using Lua scripts in conky. :crossed_swords:

it seems custom functions still need to be defined in a seperate file and loaded with lua_load, wouldn't it make sense to define them in .conkyrc already?

It is simply not a good idea to imbed LUA scripts inside a configuration section as this will most likely make the config section in .conkyrc file very difficult to parse.

lua_load is like an import statement within the config section.

Trust this answers your query.

@plikhari Thanks for the good explanation.

@chneukirchen I'm here to close issues. The person who implemented nice Lua support in conky hasn't been active on GitHub. I don't know the reasons, but I'll ping @labath to see if we can get a response and/or a pull request to remedy this issue. If nothing, we can close this in a month.

Trust this satisfies your question.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bad-interpreter picture bad-interpreter  ·  4Comments

Microcrap picture Microcrap  ·  4Comments

akorop picture akorop  ·  3Comments

Dimerbone picture Dimerbone  ·  4Comments

mreinhardt picture mreinhardt  ·  3Comments