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
#!/usr/bin/env sh | |
TRACKINFO=`mpris-remote trackinfo|grep ".jpg"|cut -d ':' -f3| cut -c 3-`; | |
printf '%s\n' "$TRACKINFO" | while IFS= read -r line | |
do | |
if [ ! -e "$line.png" ]; then | |
rm "$(readlink /tmp/conkyimage.png)" | |
convert $line \( +clone -background black -shadow 80x3+2+2 \) +swap -background transparent -layers merge +repage "$line.png" | |
ln -sfn "$line.png" /tmp/conkyimage.png; | |
fi | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment