diff options
Diffstat (limited to '.i3')
-rw-r--r-- | .i3/conkyrc | 2 | ||||
-rw-r--r-- | .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(...) |