conky/functions.lua

11 lines
295 B
Lua
Raw Normal View History

2019-07-04 21:07:35 +00:00
-- not working - why???
-- same text input returns different length strings!
2019-05-29 11:34:27 +00:00
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