xbar-my-prs is a plugin I wrote for something called xbar which is a macOS app that let's you write scripts that then show up in the macOS menu bar. Mine is about fetching information about my recent GitHub pull requests.
A picture of it in action:
Every minute, it does this GitHub search: is:pr author:@me sort:updated
Then it parses the results and attempts to display a neat summary.
And each time it runs, it stores a copy of the result in the /tmp directory so that it can compare what the result became compared to before. So if something has changed in the last minute, it displays a summary of the change(s). Example:
How you can get it too
First you have to install xbar onto your macOS.
At the time of writing you can't install it with Homebrew. Working on that. But all you need is just and Bun and then you can install it like this:
git clone https://github.com/peterbe/xbar-my-prs.git && cd xbar-my-prs
just install
just ship
If all goes well, it should have crated an executable file at:
~/Library/Application\ Support/xbar/plugins/my-prs.1m.bin
on your system. And that should be all xbar needs to know there's a new plugin to run.


Comments