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.
- Python (2.x or 3.x)
- Python
dbus
- Python
gi.repository
Adjust the path to status.py
in monitor.py
:
def print_status():
os.system("python path/to/script/spotify_status/status.py")
Example for Polybar
[module/spotify]
type = custom/script
exec = python /path/to/script/spotify_status/monitor.py
format = <label>