conky/functions.lua

11 lines
295 B
Lua

-- not working - why???
-- same text input returns different length strings!
function conky_pad(char, length, text )
return string.rep(char, length - string.len(conky_parse(text)))
end
function conky_sub_space(replacement, str)
return string.gsub(conky_parse(str), ' ', replacement)
end