This is a BitBar plugin (supporting both SwiftBar and xbar) that shows live Twitch streams of users you follow.
- Install SwiftBar or xbar.
- If you're unsure which to install, I recommend SwiftBar, as this plugin has been tested with it.
- If you have Homebrew, you can also install with
brew install --cask swiftbar
orbrew install --cask xbar
.
- Install Rust.
- If you have Homebrew, you can also install with
brew install rust
.
- If you have Homebrew, you can also install with
- Install the plugin:
cargo install --git=https://github.com/fenhl/bitbar-twitch --branch=main
- Create a symlink to
~/.cargo/bin/bitbar-twitch
in your SwiftBar/xbar plugin folder. Call it something likebitbar-twitch.1m.o
, where1m
is the rate at which the list of streams will be refreshed. - If you're using SwiftBar, the plugin should now appear in your menu bar. If it doesn't appear automatically, or if you're using xbar, refresh by opening a menu and pressing ⌘R.
- Follow the instructions in the menu to log in with your Twitch account.
- Clicking “Watch” tries to open IINA by default. (If you have Homebrew, you can install it with
brew install --cask iina
.) By holding ⌥, you can open streams in your browser instead.
The configuration file lives in a JSON file at $XDG_DATA_DIRS/bitbar/plugin-cache/twitch.json
. It may contain the following entries, all optional:
accessToken
: A Twitch API key for the plugin. If this is missing, the plugin will display instructions for generating it.deferDeltas
: An array of timespecs given as arrays of strings. For each timespec listed, the plugin will generate menu items to hide itself until the next datetime matching that timespec.
Additionally, the entries deferred
, hiddenGames
, hiddenStreams
, hiddenUsers
, and userId
are managed automatically by the plugin.
This plugin is based on the original Twitch Follows plugin by SCdF, which uses a now-defunct Twitch API and is no longer maintained.