header.lua 498 B

12345678
  1. -- your conky.lua will need to load a file that contains the functions used here
  2. -- add e.g. "lua_load = './files/functions.lua'," to your conky.config section.
  3. -- Mostly two functions, one to draw an (SVG) image at a certain location, one to
  4. -- draw text in a certain size, font and color, at a certain location.
  5. --
  6. --~ draw_text('%name%, %region%',%width%-%padding_h%-1,5,'%font%',16,'%textcol%',50,nil,"right")
  7. draw_text('%name%',%padding_h%,5,'%font%',16,'%textcol%',50,CAIRO_FONT_WEIGHT_BOLD)