Skip to main content

Thread: conky doesn't load lua background


i have lua call in conky config file.nautilus

code:
lua_load /home/editheraven/scripts/draw_bg.lua lua_draw_hook_pre draw_bg
and draw_bg this

code:
--[[ background londonali1010 (2009)   script draws background conky window. covers whole of conky window, can specify rounded corners, if wish.   call script in conky, use (assuming have saved script ~/scripts/):     lua_load ~/scripts/draw_bg.lua     lua_draw_hook_pre   changelog: + v1.0 -- original release (07.10.2009) ]]   -- change these settings affect background. -- "corner_r" radius, in pixels, of rounded corners. if don't want rounded corners, use 0.   corner_r=0   -- set colour , transparency (alpha) of background.   bg_colour=0x000000 bg_alpha=0.4   require 'cairo' function rgb_to_r_g_b(colour,alpha)     return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha end   function conky_draw_bg()     if conky_window==nil return end     local w=conky_window.width     local h=conky_window.height     local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)     cr=cairo_create(cs)       cairo_move_to(cr,corner_r,0)     cairo_line_to(cr,w-corner_r,0)     cairo_curve_to(cr,w,0,w,0,w,corner_r)     cairo_line_to(cr,w,h-corner_r)     cairo_curve_to(cr,w,h,w,h,w-corner_r,h)     cairo_line_to(cr,corner_r,h)     cairo_curve_to(cr,0,h,0,h,0,h-corner_r)     cairo_line_to(cr,0,corner_r)     cairo_curve_to(cr,0,0,0,0,corner_r,0)     cairo_close_path(cr)       cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))     cairo_fill(cr) end
this worked fine until started error on libgl.so file

code:
conky: llua_load: error loading module 'cairo' file '/usr/lib/conky/libcairo.so':     /usr/lib/i386-linux-gnu/mesa/libgl.so.1: undefined symbol: xcb_glx_set_client_info_2arb  conky: llua_do_call: function conky_draw_bg execution failed: attempt call nil value
i didn't removed libraries lately, problem?

anyone?


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] conky doesn't load lua background


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account