First, install xbar or SwiftBar.
Then run:
$ npx t2-server-xbar install
If using SwiftBar, you also need to supply the path to your SwiftBar plugins directory, since there is no default. Like so:
$ npx t2-server-xbar install /path/to/plugins/dir
If you’d like to develop this plugin and run it directly from a git checkout, clone this repo, then run:
$ yarn
$ yarn run dev
$ yarn run start:dev
The plugin script will point to your working copy rather than the published
package, and the image server (for generating the image
display mode) will
run locally.
Since the plugin uses npx
to run the t2-server-xbar
script from npm, it
should stay up to date automatically.
However, if new options are added, you may need to re-run the install command (above) for them to show up.
To set options, select xbar ▸ Open plugin… from the menu.
A regular expression (case sensitive) to select the server to query.
Server info can be shown in three ways: image
, table
, or submenu
mode. As
of v2.0.0, image mode is the default (seen above).
Table mode looks like:
Submenu mode looks like: