Skip to content

Instantly share code, notes, and snippets.

@juanfgs
Created March 6, 2018 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanfgs/594cd669f30a13422f63266c5ac91858 to your computer and use it in GitHub Desktop.
Save juanfgs/594cd669f30a13422f63266c5ac91858 to your computer and use it in GitHub Desktop.
#!/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