I wanted to show some Album art in conky.

Ofcourse i didnt need to re-invent the wheel so I stumbled upon this forum topic:


iggykoopa created a nice script (see here) but because I like the dark feeling of #! I wanted to have the album art in greyscale.

I took his base from: http://crunchbanglinux.org/pastebin/29 and added this part to it: (and an option so you can start it with “conkymusic.py -g”.)

def grey:
image = Image.openhome + "/.album"
image = image.convert'L'
image.savehome + "/.album", "png"

You can grab the whole code here: Python CrunchBang Linux Pastebin.

The code in conky:

${execi 10 /home/pieter/.conky/conkymusic.py -g -s 75x75}
${image /home/pieter/.album -p 170,10 -s 75x75}

Works great here.