An open API service indexing awesome lists of open source software.

https://github.com/nelsongillo/spotify_status

tool to monitor the currently played song by spotify
https://github.com/nelsongillo/spotify_status

polybar-scripts python spotify

Last synced: 12 months ago
JSON representation

tool to monitor the currently played song by spotify

Awesome Lists containing this project

README

          

# spotify_status
This is a little python script which outputs the current playing song to stdout.\
The tool waits for a notfication by Spotify and asks for the metadata of the current song.

### Dependencies
* Python (2.x or 3.x)
* Python `dbus`
* Python `gi.repository`

### Usage:
Adjust the path to `status.py` in `monitor.py`:
```python
def print_status():
os.system("python path/to/script/spotify_status/status.py")
```

#### Example for [Polybar](https://github.com/jaagr/polybar)
```ini
[module/spotify]
type = custom/script
exec = python /path/to/script/spotify_status/monitor.py
format =
```