Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

Latest commit

 

History

History
32 lines (21 loc) · 1.02 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.02 KB

mpdart

!! No longer maintained !!

I haven't touched this script in a while, as I no longer regularly use MPD for mp3 playback. Feel free to fork and hack away.

This is a quick script to display the embedded artwork song that is currently playing on MPD. It does so by:

  • Reading your .mpdconf file to determine the library location
  • Getting the current song filename from mpc
  • Extracting the image data with ffmpeg
  • Calling imgcat to display the image in your terminal, or
  • Displaying a short message about the lack of artwork

Dependencies

  • mpd (the entire point here is displaying mpd's current track)
  • mpc
  • ffmpeg
  • imgcat (available from here)
  • tput (usually installed by default)

TODO:

- Read artwork directly from the file via byte offsets (abandon ffmpeg)
- Read the folder.jpg/cover.jpg file that may exist in the directory
- Figure out what's happening with mpc appending the track number to the end of the status line