Option to run a script ONLY when it's visible on the touch bar.

I have a few Widget Specific Configs that I want to execute a script for very quickly but ONLY when it's visible on the touch bar. When it's not running on the touch bar, it's worthless to update so quickly and will kill battery. I was wondering if there's a way to make a setting that the script will only execute if it's visible on the touch bar.

Any way to do this? Or is it a new feature that would need to be added?

Put it in a group :man_shrugging:t4: this should do it :+1:t4:

If a script is in a group and you set it to run every second, will it do so when that group is not active? That's what I want to avoid from happening

Had this same question some time ago! I created the script

Beep

Set it to run every second, put it in a group, and my laptop annoyed me only when the group was open :wink: so I guess the script is only executed when visible. Maybe @Andreas_Hegenberg could confirm this?

Imprint | Privacy Policy