diff options
-rw-r--r-- | .i3/scripts/conky_helpers.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.i3/scripts/conky_helpers.lua b/.i3/scripts/conky_helpers.lua index b796753..1716e96 100644 --- a/.i3/scripts/conky_helpers.lua +++ b/.i3/scripts/conky_helpers.lua @@ -1,6 +1,7 @@ -- escape special chars to be usable in JSON function conky_json(str) - return string.gsub(conky_parse(str), '([\\"])', '\\%1') + str,_ = string.gsub(conky_parse(str), '([\\"])', '\\%1') + return str end -- format strings of 'xxh xxm xxs' as 'hh:mm' |