A Rust application that plays different Spotify playlists based on the prefix of your current git branch.
- 🎧 Automatically plays playlists based on your branch
- 🔄 Changes playlist when you switch branches
- ⚡ Keeps the music playing in the background
- 🎮 Controls Spotify via the official API
- Rust installed
- Spotify Premium account
- Spotify app active on some device
- Spotify API credentials
# Clone the repository
git clone https://github.com/your-username/branchfy
cd branchfy
# Configure your Spotify credentials
cp .env.example .env
# Edit .env with your credentials- Create an application in the Spotify Developer Dashboard
- Add
http://localhost/as a redirect URI - Copy Client ID and Client Secret to the
.envfile
# First run - will ask for playlist IDs
cargo run
# Playlist IDs can be found in the Spotify URL:
# spotify:playlist:37i9dQZF1DX5Ejj0EkURtP
# ^^^^^^^^^^^^^^^^^^^^^ This is the IDBy default:
feat/*-> Playlist configured for featuresfix/*-> Playlist configured for fixes
Ctrl+Corbranchfy stop- Stops the execution- The music keeps playing until you explicitly stop it
Pull requests are welcome! For major changes, please open an issue first.