Hacks
From Music Player Daemon Community Wiki
This is a collection of various Hacks & Scripts that have been collected over time. Feel free to improve on them, add new ones, but don't be surprised if they're broken or otherwise not working.
WARNING: Do not assume these have not been modified. They are usually very short so take the time to review it before running it.
- play - Just type "play mygfavaoritealbum" and your favorite album is loaded. Very typo tolerant.
- addrandom - Horrible hack to add random song to currently playing. Edit this example and make it better!
- AMPDlogger - Small bash script to log tracks played with MPD to a plain text file.
- arthist-recent - Dirty hack to let Artist display tracks in reverse chronological order
- bluempd - Hacks and instructions on using your bluetooth device to control MPD
- copycurrent - Copies the currently playing song to a USB-Stick
- dplay - MPD integration with Midnight Commander
- favo-fiddle - volume fading, random volume manipulation
- impc - Irssi client.
- mpc-fade - Volume fading
- Mpdalbum - a shell script able to automatically fill your playlist with full albums and with some other nice features.
- mpddb2xml - A simple MPD database to XML parser
- mpdfind - xmmsfind clone for mpd
- rmprev - Removes previously played song from playlist
- mppledit - Playlist editor that uses your $EDITOR to manipulate the playlist
- mpc-pause - Bind this script to a key to toggle pause/play just like XMMS' --pause-play argument. (Deprecated to mpc toggle)
- mpc-play - Play any file (e.g. outside mpdroot directory)
- mpc-dmenu - Use dmenu to select a song from the current playlist
- mpc_playlist - uses mpc to add playlists beginning with special char
- mpdlyricsonbrowser - Show lyrics of current song on a mozilla like browser.
- mpdlyrics - Shows lyrics of current song on w3m browser [you may change it] (fetchs it or read previously stored). Uses "feeling lucky" feature. Dirty bash script.
- mpdwiki - Shows wikipedia article about current mpd artist using w3m [you may change it].
- streamup - Start and stop a stream seamlessly
- state save - Save and restore MPD states on your localhost.
- streampush - Give this script a url, it'll add all the streams in that page.
- SystemV Init - Init Script to start and stop MPD via System V
- update and add - first update, then add all music files
- xchat_mpd - MPD control script for Xchat. As of version 0.1 (current version), only supports track announce.
- MPC / MPD Score command - Add support for scoring
- MusicMagicMixer - script to use with mpc and Predixis MusicMagicMixer
- irssi-np - script that posts the song playing in mpd to an irc channel
- lyrc - Fetches lyrics from lyrc.com.ar. (alternative: lyriki) Bash script, but there's also a zsh version.
- mlyric - Fetches lyrics of the currently playing song, adds it to id3tag and displays it on stdout. If id3tag already has a lyric, this one will be displayed instead.
- playstream - Smart handler for m3u and pls files.
- mpd_osd - Dirty hack to display the title of the played song by OSD
- di.fm-playlists - Download all playlists from www.di.fm, convert them from .pls to .m3u and place them into the mpd-playlist-directory
- ices-client - A Perl script for streaming MP3s to your Icecast server
- mpd-osd.sh and mpd-new-track.sh - Two Shell scripts, the first draw the current track with xosd, and the second works with the latter to show an OSD when a new track is being played.
- mpd_lyric.sh - A shell script for displaying lyrics with interactive programs, ie less
- mpd-growl.pl - A perl script that will post notifications on song change.
- mpd_alarm.pl - A perl script that allows you to start mpd playing with a slowly increasing volume at a configurable time.
- mpckbd - Simple C program to respond to run mpc in response to keyboard events.
- rg.py - A wrapper around mp3gain that adds ReplayGain info to ID3v2 tags instead of APEv2 tags.
- ape2id3.py - A script to convert APEv2 ReplayGain tags to ID3v2 ReplayGain tags which MPD can read.
- Hack:avahi mpd.service - announce mpd with avahi
- Hack:avahi phpmp.service announce phpmp with avahi
- weempd - A client to announce the song of weechat
- streammpc - A script that passes a playlist (m3u or pls formats currently supported) to a user selected choice between a local player and a remote MPD server. Intended for use with webradio streams in general and streamtuner in specific.
- stream-monitor - Two scripts that monitor mpd while it is playing a stream. If the Time: status stops then it tries to have it play the stream again. Keeps the stream going 24/7.
- lastfmpdqc - lastfm/mpd queuing client. gets recommended tracks from last.fm and adds them from your library to mpd's current playlist
- ralbum - Simple C program that plays a random album.
- ralbumd - Simple C daemon that polls mpd and plays a random album when the current playlist is finished.
- MPDGajim - Very simple Python pseudo-daemon which updates Gajim's status to the current track. (Requires mpdclient2)
- stop_after_current - A bash script that makes mpd stop after the currently playing song.
- smpc - Micro script that works with dzen to show On-Screen info of mpc output.
- mpd-stats - Simple perl scripts to keep track of what mpd is playing and generate stats from it
- mpdlyricsscript - A very working python mpd lyrics script. No extra dependencies!
- musicplaynow - A tiny shell script for playing MP3 files from any location, even outside the music_directory (made for integration with desktop shells)
