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

Quick bash script to display currently playing song artwork in your terminal

License

Notifications You must be signed in to change notification settings

a-n-t-i-b-a-r-y-o-n/mpdart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Quick bash script to display currently playing song artwork in your terminal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages