- 4 Talk
-
Conky and Images (Imlib2)

Added by Brenden1Example
Edit
The following example illustrates some of the amazing things you can do with $image. In your conkyrc, add the following (replace '/home/brenden/cheeseburger.jpg' with an image of your choice):
...
TEXT
${image /home/brenden/cheeseburger.jpg -p 20,20 -s 200x200}${image /home/brenden/cheeseburger.jpg -p 20,240 -s 200x200}${image /home/brenden/cheeseburger.jpg -p 20,460 -s 200x200}
Displaying a Webcam
Edit
imlib_cache_size 0 # this needs to be set to 0 so it actually redraws the image when it changes
# in Conky 1.7.2, there are more options available for controlling the caching of an image, as well as better support for path names
TEXT
...
${offset 50}$uptime_short${image /home/brenden/cgy-done.jpg -p 0,10}${texeci 300 /usr/bin/wget -q http://www.cbc.ca/calgary/webcam/cgy_roofcam.jpg -O /home/brenden/cgy.jpg && mv /home/brenden/cgy.jpg /home/brenden/cgy-done.jpg}