matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.59k stars 642 forks source link

AdHoc refresh only #472

Closed m-denton closed 6 years ago

m-denton commented 6 years ago

Hey there,

I would like to have my plugin only refresh (run a bash script) when I tell it to. Not sure how or if this can be done.

gingerbeardman commented 6 years ago

The refresh period is controlled by the filename. I'm not sure if you can remove that part of the filename, but you could try it. If not, set it to period longer than you expect to refresh manually. eg 7d or 365d

https://github.com/matryer/bitbar/blob/master/README.md#installing-plugins

You can also Refresh remotely using a custom URL https://github.com/matryer/bitbar/blob/master/Docs/URLScheme.md which you might bind to some keyboard shortcut rather than having to use the mouse and menu.