This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Send notification with album art when ncmpcpp plays a new song | |
# execute_on_song_change must be set in ncmpcpp config | |
readonly MUSIC_DIR="${HOME}/Music/Library" | |
readonly SONG_PATH="$(mpc --format '%file%' current)" | |
readonly SONG_DIR="$(dirname "${SONG_PATH}")" | |
readonly ALBUM_ART_PATH="${MUSIC_DIR}/${SONG_DIR}/cover.jpg" |