Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to hide .lua scripts from conky manager 2? #18

Open
AndersonGI opened this issue May 24, 2020 · 1 comment
Open

Is there a way to hide .lua scripts from conky manager 2? #18

AndersonGI opened this issue May 24, 2020 · 1 comment

Comments

@AndersonGI
Copy link

This is more a question than a issue. I have some conkys that uses .lua scripts. Besides those conkys files, conky manager also show some .lua files, but (as espected) does not load/show anything. I wish to remove those .lua from the list.

@zcot
Copy link
Owner

zcot commented Jun 23, 2020

I do think this is possible, but it becomes tricky, here's why:

A .lua support file is NOT included in the listing by itself, but a properly formatted conky config file that happens to be using the .lua extension IS. Well, ANY extension file will be listed if it does include a marker for a main config file.

So, the current condition should be that you are not seeing any file that "does not load/show anything". It might be that you have to correct the config for it to run in the first place? We might have to dig deeper into the specific details there.

One example is the provided "seamod" package. Check in that directory and we have conkyrc.lua and seamod_rings.lua. But only conkyrc.lua is showing in the manager because it has the properly formatted marker for a main config file.

I have maybe 100 .lua files in my directories and the only 1 that shows up in the manager is that one conkyrc.lua file.

What constitutes the file to be listed in the first place is that it follows the structure of a legitimate conky config.

The original code that TeeJee did would parse all the files for the TEXT marking. And I've added code that will also include a file if it contains the conky.text markup. This is pretty basic, and probably certainly why unwanted files could be included at times. See the commit here: 051d69e

I'll take a look at this parser and check about some other ways to further limit the inclusion of a file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants