py3status icon indicating copy to clipboard operation
py3status copied to clipboard

How to stop closed group from refreshing?

Open eugenenelou opened this issue 3 years ago • 3 comments

Hello,

I'm trying to customize the group module so that it only fetches data when it's open. It would be useful when the module makes some API calls and I don't want them made when I don't use them.

I'm not understanding how I can do that. I tried overriding the _get_output method of the group module but the submodules are still updated.

eugenenelou avatar Nov 14 '20 09:11 eugenenelou

Hello Eugène

I haven't looked back at the code but I guess something like disable_module/wake on the given modules should do?

ultrabug avatar Nov 14 '20 20:11 ultrabug

Sleeping does not seem to do anything. And disable_module is raising many errors: the group module is still being run it seems and its items are empty. Where can I find the traceback of the errors?

eugenenelou avatar Nov 15 '20 09:11 eugenenelou

Run py3status with the -d flag and check your user logs

ultrabug avatar Nov 15 '20 10:11 ultrabug

If still needed, please reopen and update this issue

ultrabug avatar Apr 17 '23 16:04 ultrabug