LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   JSON Error in i3wm with Conky (i3bar) (https://www.linuxquestions.org/questions/linux-desktop-74/json-error-in-i3wm-with-conky-i3bar-4175553053/)

itscience 09-09-2015 01:06 PM

JSON Error in i3wm with Conky (i3bar)
 
Hi and thanks for reading :-)

I followed these instructions on the offical website to use conky with my i3 Window Manager http://i3wm.org/docs/user-contributed/conky-i3bar.html
I also followed the video https://www.youtube.com/watch?v=fcO7zkK9AGM who directly references this guide with the additional information of #chmod +x my files (.conkyrc and .conky-i3bar)

I used this default setup also so I know I will see something and to start me of but this is the error I am getting:

Error: Could not parse JSON (parse error: unallowed token at the point in JSON text)

I don't know what this error means and I was hoping someone would know so I could resolve it.

Many thanks for reading. Hope you can help.

Sincerely,
Ed.

itscience 09-09-2015 03:20 PM

In my .i3/config I changed:
status_command ~/.conky-i3wm
I then made the .conky-i3wm file in that location
echo '{"version":1}'
echo '['
echo '[],'
exec conky -c ~/.conkyrc

I then made the ~/.conkyrc file and typed:
[{ "full_text":"Home 84.0G Free" , "color":"#ffffff" },
{ "full_text":"RAM 32" , "color":"#ffffff" }],

I then made both files executable.
chmod +x *file*

The error that shows now is:
Error: status_command process exited unexpectedly (exit1)

When I used the script from the Youtube video it was as the first message and if I change:
exec conky -c ~/.conkyrc to
exec conky -c ~/.conkyrc &
The error changes to (exit 0)


All times are GMT -5. The time now is 02:35 PM.