Widgets setting: Execute every x seconds, but only when visible?

Not sure if this would be possible but maybe something to consider.
Would it be possible to have a setting for applescript widgets to only if visible and specify how often while it is visible?

Perhaps in addition to the settings: "execute every x seconds" (working whether visible or not) and the "always run when visible", have another setting for "execute every y seconds while visible".

That way a widget hidden in a group or with a modifier key wouldn't be running constantly, but could run repeatedly while the group is open or the modifier key is held down?

Currently apple scripts are only running if the widget is visible, does this already solve your feature request?

Really? I could have sword they were running regardless. Maybe I was just mixed up with them running when the touch bar light went off.
I guess that does take care of it. Thanks.