Skip to content

JanJoar/mpd-song-change-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MPD song-change notifications

This is a shell script to display a notification via notify-send when the song played by MPD changes. It uses ffmpeg to extract embedded album art and so doesn’t require a directory filled with .jpg- and/or .png-files. It looks for files in $HOME/Music/, but this can easily be changed.

Installation

Either clone the repository and run the notifications.sh file as an executable or, if you don’t want the README.org and .git files, use this.

wget https://github.com/JanJoar/mpd-song-change-notification/blob/main/notifications.sh && wget https://github.com/JanJoar/mpd-song-change-notification/blob/main/notfound.jpg && chmod +x ./notifications.sh

Then simply run the script as like this:

./notifications.sh

How to use the script

Currently this does not run as a background process, as I wanted to avoid constantly polling MPD to see if mpc current changed. The author executes this through ncmpcpp’s execute_on_song_change configuration option.

Dependencies

The script requires bash, ffmepg, and notify-send.

About

A bash script displaying song metadata

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages