matryer/xbar

Trigger plugin refresh without "Updating..." message

danijar opened this issue · 2 comments

It's possible to refresh a plugin using open -g bitbar://refreshPlugin?name=plugin-name.*.sh. However, this briefly displays a message Updating... before updating the content. This can be very distracting in some cases. Would it be possible to simply wait for the plugin to return the new content and then display that directly?

Perhaps the build from #502

In my own build I made a custom edit to replace the "Updating..." with " " (a blank space)

g3rv4 commented

I'd love that... in the meantime, this approach works for me:

  1. My app maintains a file that has the state of the menu bar, it updates it whenever it would trigger refreshPlugin
  2. Have my plugin update every 1s, and all this does is reading that status file

That's how I can have really quick updates, without having logic on my plugin to do any expensive work.