From 83e727a4b34eeb7bc16134c43de24f07570145d3 Mon Sep 17 00:00:00 2001
From: Andrey Burov
[{ "full_text":"Home 84.0G Free" , "color":"#ffffff" }, - { "full_text":"RAM 32%" , "color":"#ffffff" }],+
[ + { "full_text": "Home 84.0G Free" , "color": "#ffffff" }, + { "full_text": "RAM 32%" , "color": "#ffffff" } +],
Here's a sample conkyrc that updates every 2 seconds. Just to make things a litte bit more exciting @@ -145,15 +147,12 @@ we put a condition in the script in order to write the occupied RAM in red if th -- number of cpu samples to average -- set to 1 to disable averaging cpu_avg_samples = 2, - - -- Stuff after 'TEXT' will be formatted on screen }; conky.text = [[ -{% raw %} -[{ "full_text" : "Home ${fs_free /home} Free" , "color" : "\#ffffff" }, -{ "full_text" : "RAM ${memperc}%" , "color" : -${if_match ${memperc}<90}"\#ffffff"${else}"\#ff0000"${endif} }], -{% endraw %} +{% raw %}[ + { "full_text": "Home ${fs_free /home} Free" , "color": "\#ffffff" }, + { "full_text": "RAM ${memperc}%" , "color": ${if_match ${memperc}<90}"\#ffffff"${else}"\#ff0000"${endif} } +],{% endraw %} ]]; /tt> -- 2.39.5