Electron has exposed some API's that make it easy to create Touch Bar apps.:
Has anyone thought about how this could be integrated with BTT? It seems there's only support for AppleScripts and Shell Scripts, and these can only return a single value.
As a corollary question (that maybe deserves it's own thread), is there a way to set up BTT widgets that do not run on intervals? For example, if I create a "speedtest" button that does something handy like the speedtest-cli, I would only want this script to fire & show a return value when I press the button, bc I do not always care what my current ping speed is and wouldn't want this script to run on an interval.