summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2015-03-09 14:22:25 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2015-03-09 14:22:26 +0100
commit4bff17a0bcdfc0e05d1de10075fa9178af3b9324 (patch)
tree46a966e7afe6e4f0facc99a6f022f7734beaa3f0
parent73facf4bfd8125befe1ad80d795b08e284cf5510 (diff)
downloaddotfiles-4bff17a0bcdfc0e05d1de10075fa9178af3b9324.tar.gz
dotfiles-4bff17a0bcdfc0e05d1de10075fa9178af3b9324.tar.bz2
dotfiles-4bff17a0bcdfc0e05d1de10075fa9178af3b9324.zip
[conky] try to fix the string conversion
-rw-r--r--.i3/scripts/conky_helpers.lua3
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'