Created
March 6, 2018 17:41
-
-
Save juanfgs/594cd669f30a13422f63266c5ac91858 to your computer and use it in GitHub Desktop.
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