The Conky Blog The Official Blog for Conky, a Lightweight System Monitor

4Nov/090

Feature Feature: Imlib2 + Cairo Bindings for Lua

It's been great to see more and more of you starting to use Lua/Cairo in Conky! But did you know that you can use imlib2 bindings in Lua as well? You can combine Cairo drawing and imlib2 image manipulation to get display a photo album, for instance:
Photo Album Screenshot
The screenshot above was made using Cairo to draw the frame, and imlib2 to draw the image. If you'd like to take a peek at the code, you can download it here: photo_album.lua.tar.gz.

If you'd like to get started using imlib2 in your Lua scripts, I'd offer you the same advice as for Cairo...

First, have a read through the relevant documentation. Then grab some code and start tweaking!

I'm really impressed with the way I've seen Conky users all over the web collaborate to come up with some really great Cairo-drawn images...Now hopefully you'll have a go at imlib2 as well...

Happy Conkying!

Filed under: Features Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.

Essential Links

Categories

Archive Posts