--- /dev/null
+# Intro
+
+Use Spotify's MPRIS2 D-Bus interface to pull information on your current track.
+
+![Screenshot Example in dwm status bar](screenshot.png)
+
+# Usage
+
+```
+$ ./spot_track
+Shells - Mo Lowda & The Humble
+```
+
+# Portability
+
+Relies on `dbus` but you probably have it included if your distro uses `systemd`.
--- /dev/null
+#!/bin/sh
+dbus-send \
+ --print-reply --session \
+ --dest=org.mpris.MediaPlayer2.spotify \
+ /org/mpris/MediaPlayer2 \
+ org.freedesktop.DBus.Properties.Get \
+ string:'org.mpris.MediaPlayer2.Player' \
+ string:'Metadata' \
+| awk '/xesam:title/ {getline; title=substr($0, index($0, $3))} /xesam:artist/ {getline; getline; artist=substr($0, index($0, $2))} END { print title " - " artist}' \
+| tr -d '"'