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
- Host: GitHub
- URL: https://github.com/nelsongillo/spotify_status
- Owner: nelsongillo
- License: mit
- Created: 2019-03-11T18:46:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T15:19:48.000Z (over 6 years ago)
- Last Synced: 2025-01-13T02:20:56.315Z (about 1 year ago)
- Topics: polybar-scripts, python, spotify
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 =
```