This repo contains various SwiftBar plugins I've written. They are not compatible with BitBar, because I take advantage of SwiftBar features (environment variables, SF Symbols).
All plugins are released under an MIT license.
Displays the ratings w/out results from the most recent match from a specified wrestling promotion; scrapes Cagematch for data.
- Python 3 (requests, BeautifulSoup)
By default, this plugin tracks NJPW shows. If you'd like to track another promotion, follow the optional steps as well.
- Download cagematch-shows.1h.py to your SwiftBar plugin folder
Optionally:
-
Create a
config
folder inside your SwiftBar plugin folder -
Create a file in your
config
folder calledcagematch-shows.ini
-
Add the promotion name you'd like to track to that file, following the pattern here:
[Config]
promotion=World Wrestling Entertainment promotion_id=1
promotion_id is optional, but if you add it you'll save a HTTP call.
The show name and overall Cagematch rating (if any) is displayed in the menu bar. The drop down menu lists the matches, also with Cagematch ratings (if any). Select any match to go to the event page, which will show the card with ratings but no results.
- Add a configurable filter to ignore shows (i.e., you might not care about AEW Elevation)
- Improve promotion ID lookup by using search instead of scraping a huge pulldown menu
Displays the current Deal of the Day at DriveThruRPG.
- Python 3 (requests, BeautifulSoup)
- Download drivethrurpg-deal-day.1d.py to your SwiftBar plugin folder
The item name and price displays in the menu bar. The drop down menu contains a list of rules systems the item works with. Click any rules system to go to the item page.
Displays the current Letterboxd showdown (see https://letterboxd.com/showdown/)
- htmlq (https://github.com/mgdm/htmlq)
- Download showdown-check.1d.sh to your SwiftBar plugin folder
That's it, no options.
One header line showing the current Letterboxd showdown (or None if none). For my own purposes, the script is also capable of running as a periodic standalone task that pops up a OS X notification if the showdown has changed.
A WoW world quest tracker (out of date as of recent patches).
- Python 3 (requests, BeautifulSoup)
- Download wow-quest.2h.py to your SwiftBar plugin folder
- Edit the configure() function to reflect your needs
- emissaries_flagged is a list of full faction names
- quests_flagged is a list of substrings to look for in the quest name
- Other options should be fairly self-evident
A [!] icon shows up in the menu bar if there are any quests which match your flags; these will also be called out in the dropdown. Click on a quest to go to the quest's Wowhead page.
I happened to need to track BfA emissaries and SL world quests, so that's all this plugin tracks. If you need something else I'll happily take a pull request.
A very simple WoW auction house tracker. Unfortunately it currently requires some persistence to get it working.
- Python 3 (python-blizzardapi)
-
Download wow-ah.1h.py to your SwiftBar plugin folder
-
Generate a set of Blizzard API tokens here (you must have a Blizzard account)
-
Create a
config
folder inside your SwiftBar plugin folder -
Create a file in your
config
folder calledwow_ah.ini
-
Add the API tokens and item information to that file, following the pattern here:
[API]
client_id=
secret=[Server] connected_realm_id=
[Item]
item_name=<free form text, doesn't need to be the actual item name>
item_id=
context=<ID for the specific variant of an item (runecrafted base items have this)>
To find a realm ID, log into a character on the desired server and paste this string into chat:
/run local x=GetRealmID(); print("Realm ID: ", x)
To find an item_id, check Wowhead. The item ID is in the URL for any item page.
The context is optional; you don't need it unless you're looking for a specific variant of a multi-variant item. You can find the context number for an item via the WoW Auction House API. There is no documentation for this. I'll play with it more at some point and hopefully write better docs.
Really simple: you'll get a menu bar that shows the item name you specified and the price in gold. Silver and copper is rounded off.
You can email me at durrell@innocence.com, or file an issue in GitHub.