The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

i3statusbar

asked 2014-05-11 18:38:24 +0000

i-sty gravatar image

My code: "{ "fulltext" : "RAM: ${mem}" , "color" : ${ifmatch ${memperc}>80}"#aa1515"${else}${if_match ${memperc}>60}"#c9b400"${else}"#56944e"${endif}}, "

When the memperc is over 80% I got this red text in the bar: "Error: Could not parse JSON (parse error: after key and value, inside map, I except ',' or '}')"

What's wrong with my setup?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-05-12 05:22:52 +0000

joepd gravatar image

You open two if_match-es, so you should also close both. Whether that solves your problem, I have not tested. In general, it will help if you use newlines and indentation. It is surprising how helpful that is to spot syntactical errors.

edit flag offensive delete link more

Comments

Thank you joepd! That solved my problem!

i-sty gravatar imagei-sty ( 2014-05-12 13:06:05 +0000 )edit

Question Tools

Stats

Asked: 2014-05-11 18:38:24 +0000

Seen: 222 times

Last updated: May 12 '14