diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2015-03-09 14:22:25 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2015-03-09 14:22:26 +0100 |
commit | 4bff17a0bcdfc0e05d1de10075fa9178af3b9324 (patch) | |
tree | 46a966e7afe6e4f0facc99a6f022f7734beaa3f0 | |
parent | 73facf4bfd8125befe1ad80d795b08e284cf5510 (diff) | |
download | dotfiles-4bff17a0bcdfc0e05d1de10075fa9178af3b9324.tar.gz dotfiles-4bff17a0bcdfc0e05d1de10075fa9178af3b9324.tar.bz2 dotfiles-4bff17a0bcdfc0e05d1de10075fa9178af3b9324.zip |
[conky] try to fix the string conversion
Diffstat (limited to '')
-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' |