From 4d61a0940148d35f8db1966a88c4fc755526ee15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 1 Jun 2013 15:43:49 +0200 Subject: Fixes --- .i3/conkyrc | 2 +- .i3/scripts/json_escape.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.i3/conkyrc b/.i3/conkyrc index 250746e..ca8be29 100644 --- a/.i3/conkyrc +++ b/.i3/conkyrc @@ -42,7 +42,7 @@ TEXT # JSON for i3bar [ \ ${if_mpd_playing}{ - "full_text" : "${lua json ${mpd_smart}}"\ + "full_text" : "${lua json ${mpd_smart}}",\ "icon" : ${if_match "${mpd_status}"=="Paused"}${template0 pause}${else}${template0 mpd}${endif} \ },${endif}\ {\ diff --git a/.i3/scripts/json_escape.lua b/.i3/scripts/json_escape.lua index 1715738..8723d3e 100644 --- a/.i3/scripts/json_escape.lua +++ b/.i3/scripts/json_escape.lua @@ -1,5 +1,5 @@ function conky_json(str) - return string.gsub(conky_parse(str), '[\\"]', '\\%1') + return string.gsub(conky_parse(str), '([\\"])', '\\%1') end function conky_i3(...) -- cgit v1.2.3