A simple macOS menu bar application that displays the currently playing Spotify track.
- Shows current song and artist name in the menu bar
- Updates automatically every second
- Runs in the background
- Minimal and lightweight
- macOS
- Python 3.11+
- Spotify account
- Spotify Developer API credentials
- Clone this repository:
git clone https://github.com/yourusername/spotify-menu-bar
cd spotify-menu-bar
- Install required packages:
pip install -r requirements.txt
-
Register your application at Spotify Developer Dashboard
- Create a new application
- Set the redirect URI to:
http://localhost:8888/callback
- Note down your Client ID and Client Secret
-
Create a
.env
file in the project root and add your Spotify API credentials:
SPOTIFY_CLIENT_ID=your_client_id_here
SPOTIFY_CLIENT_SECRET=your_client_secret_here
- Build the application:
python3 setup.py py2app
- The application will be created in the
dist
folder asSpotifyMenuBar.app
- Double click
SpotifyMenuBar.app
to run - On first run, authenticate with your Spotify account
- The current playing track will appear in your menu bar
To make the app start automatically when you log in:
- Go to System Settings > Users & Groups
- Click on your user
- Click Login Items
- Click + and add SpotifyMenuBar.app
This app was built using:
rumps
: For creating the menu bar appspotipy
: For Spotify API integrationpy2app
: For packaging the Python script as a macOS app
MIT License
Created with Windsurf By @niyoseris