I have made a configuration with Conky that use a lua file to get rounded corners
the lua is very simple
I just copy-paste the lua, it's not mine
the script and conky works 100%
NOW i wanted to put some "gradbars" into my conky, but for all that I searched every user use a lua file called "allcombined.lua"
i tried to copy-paste only the function about the "gradbar" (from function to end) but I always got error when it tries to make arithmetics...
the only difference I see is that the lua for rounded corners has this:
function rgb_to_r_g_b(colour, alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
and the one for gradbar is:
function rgb_to_r_g_b(col_a)
return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]
end