conky - 'really' transparrent background but not text / images

view full story

https://bbs.archlinux.org – Hi again. I had some time the other day to look into it, and here is what I came up with:function image(cr, file, setup) cairo_save(cr) local cs = cairo_image_surface_create_from_png(file) local x = setup.x or 0 local y = setup.y or 0 if setup.w or setup.h then -- want horizontal or vertical scaling local w = cairo_image_surface_get_width(cs) local h = cairo_image_surface_get_height(cs) local w_ratio = setup.w and setup.w / w or 1 local h_ratio = setup.h and setup.h / h or 1 x = x / w_ratio y = y / h_ratio cairo_scale(cr, w_ratio, h_ratio) end cairo_ (HowTos)