Fastfetch error

here is my fastfetch config:

{
“$schema”: “https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json”,
“logo”: {
“source”: “/home/fj/Downloads/EOS-X-logo.png”,
“type”: “auto”,
“height”: 40,
“width”: 50,
“padding”: {
“top”: 2,
“left”: 0,
}
},
“modules”: [
“break”,
{
“type”: “custom”,
“format”: “\u001b[90m┌──────────────────────── Dell ──────────────────────────────┐”
},
{
“type”: “host”,
“key”: “ PC”,
“keyColor”: “blue”
},
{
“type”: “cpu”,
“key”: “│ ├ CPU”,
“showPeCoreCount”: true,
“keyColor”: “blue”
},
{
“type”: “gpu”,
“key”: “│ ├󰍛 GPU”,
“keyColor”: “blue”
},
{
“type”: “gpu”,
“key”: “│ ├󰍛 GPU”,
“format”: “{3}”,
“keyColor”: “blue”
},
{
“type”: “display”,
“key”: “│ ├󰹑 DISPLAY”,
“keyColor”: “blue”
},
{
“type”: “memory”,
“key”: “│ ├󰍛 MEMORY”,
“keyColor”: “blue”
},
{
“type”: “swap”,
“key”: “│ ├󰓡 SWAP”,
“keyColor”: “blue”
},
{
“type”: “custom”,
“format”: “\u001b[90m└────────────────────────────────────────────────────────────┘”
},
“break”,
{
“type”: “custom”,
“format”: “\u001b[90m┌──────────────────────── SSD Drives ────────────────────────┐”
},
{
“type”: “disk”,
“key”: “│ ├ DISK”,
“keyColor”: “green”
},
{
“type”: “custom”,
“format”: “\u001b[90m└────────────────────────────────────────────────────────────┘”
},
“break”,
{
“type”: “custom”,
“format”: “\u001b[90m┌──────────────────────── Purple Linux ──────────────────────┐”
},
{
“type”: “os”,
“key”: “ OS”,
“keyColor”: “magenta”
},
{
“type”: “title”,
“key”: “│ ├ USER/HOST”,
“format”: “{user-name}@{host-name}”,
“keyColor”: “magenta”
},
{
“type”: “kernel”,
“key”: “│ ├ KERNEL”,
“keyColor”: “magenta”
},
{
“type”: “packages”,
“key”: “│ ├󰏖 PACKAGES”,
“keyColor”: “magenta”
},
{
“type”: “terminal”,
“key”: “│ ├ TERMINAL”,
“keyColor”: “magenta”
},
{
“type”: “terminalfont”,
“key”: “│ ├󰛖 TERMINAL FONT”,
“keyColor”: “magenta”
},
{
“type”: “shell”,
“key”: “└ └ SHELL”,
“keyColor”: “magenta”
},
{
“type”: “custom”,
“format”: “\u001b[90m└────────────────────────────────────────────────────────────┘”
},
“break”,
{
“type”: “custom”,
“format”: “\u001b[90m┌─────────────────── Desktop Environment ────────────────────┐”
},
{
“type”: “de”,
“key”: “ DE”,
“keyColor”: “cyan”
},
{
“type”: “lm”,
“key”: “│ ├ DISPLAY MANAGER”,
“keyColor”: “cyan”
},
{
“type”: “wm”,
“key”: “│ ├ WINDOW MANAGER”,
“keyColor”: “cyan”
},
{
“type”: “wmtheme”,
“key”: “│ ├ THEME”,
“keyColor”: “cyan”
},
{
“type”: “icons”,
“key”: “│ ├󰉼 ICONS”,
“keyColor”: “cyan”
},
{
“type”: “font”,
“key”: “│ ├󰛖 SYSTEM FONT”,
“format”: “{3}”,
“keyColor”: “cyan”
},
{
“type”: “custom”,
“format”: “\u001b[90m└────────────────────────────────────────────────────────────┘”
},
“break”,

{
    "type": "custom",
    "format": "\u001b[90m┌─────────────────────── Other Info ─────────────────────────┐"
},



                {
    "type": "wifi",
    "key": "│ ├󰤢 wifi",
    "keyColor": "yellow"
    




    
    


}, 




       {
    "type": "Camera",
    "key": "│ ├󰖠 camera",
    "keyColor": "yellow"            
    




    
    


},  



       


       


        {
    "type": "media",
    "key": "│ ├ media",
    "keyColor": "yellow"            
    


},

{
    "type": "custom",
    "format": "\u001b[90m└────────────────────────────────────────────────────────────┘"
},     





        {
    "type": "custom",

    "type": "custom",
    "format": "\u001b[90m┌─────────────────────── Colors ─────────────────────────────┐"
},

        {
    "type": "colors",
    "key": "│ ├󰛖 Palette",
    "keyColor": "red",
    "symbol": "circle"
},







{
    "type": "custom",
    "format": "\u001b[90m└────────────────────────────────────────────────────────────┘"
},     

]

}

i get the error this when executing it: Error: failed to parse JSON config file /home/fj/.config/fastfetch/config.jsonc at (2, 1): unexpected character, expected a string key

i’m lost/confused. anyhelp getting it to execute correctly would be appreciated!

Fix your text formatting or use a paste service.

i pasted it EXACTLY how it is from the fastfetch config.jsonc file

hope this helps

Those aren’t normal double quotes.

is not the same as "

If you drop it in a json fomatter such as this one, it will tell you right away it is invalid and show you the first invalid spot.

1 Like

The problem is you didnt use the </> code button or enclose it in 3 tics like

Creating a large wall of text that isnt formatted correctly .. some sections become code boxes in the middle and obfuscate the actual text that the file contains, etc.

This works. :slight_smile:

I thought so too, but with the broken formatting it could have been some sort of autochange.

The error itself is a pretty big clue to begin with.

This means line 2 and the value there isnt understood.

 “$schema”: “https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json”,

Is line 2 .. then we know its something after the schema: .. in this case its extremely accurate by pointing to the first character (2,1) .. that first quotation is not " and is the first breakage .. it makes no mention of anything later because that first character already breaks it.

would you fix it for me and paste what i should have. somehow i am sorta so dumb i cannot understand. if i could see the correct way to do it and just past it into my fastfetch config file maybe i will then see what is wrong. i’m sorry for being so stupid lol… i think you are essentially spelling it out for me and somehow i am still not getting it. it has something to do with the " i get it but idk still kind of lost SORRY i really am dumb LOL

BTW THANK YOU SO MUCH FOR THE HELP!

{
  "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
  "logo": {
    "source": "/home/fj/Downloads/EOS-X-logo.png",
    "type": "auto",
    "height": 40,
    "width": 50,
    "padding": {
      "top": 2,
      "left": 0
    }
  },
  "modules": [
    "break",
    {
      "type": "custom",
      "format": "\u001b[90m┌──────────────────────── Dell ──────────────────────────────┐"
    },
    {
      "type": "host",
      "key": "  PC",
      "keyColor": "blue"
    },
    {
      "type": "cpu",
      "key": "│ ├ CPU",
      "showPeCoreCount": true,
      "keyColor": "blue"
    },
    {
      "type": "gpu",
      "key": "│ ├󰍛 GPU",
      "keyColor": "blue"
    },
    {
      "type": "gpu",
      "key": "│ ├󰍛 GPU",
      "format": "{3}",
      "keyColor": "blue"
    },
    {
      "type": "display",
      "key": "│ ├󰹑 DISPLAY",
      "keyColor": "blue"
    },
    {
      "type": "memory",
      "key": "│ ├󰍛 MEMORY",
      "keyColor": "blue"
    },
    {
      "type": "swap",
      "key": "│ ├󰓡 SWAP",
      "keyColor": "blue"
    },
    {
      "type": "custom",
      "format": "\u001b[90m└────────────────────────────────────────────────────────────┘"
    },
    "break",
    {
      "type": "custom",
      "format": "\u001b[90m┌──────────────────────── SSD Drives ────────────────────────┐"
    },
    {
      "type": "disk",
      "key": "│ ├ DISK",
      "keyColor": "green"
    },
    {
      "type": "custom",
      "format": "\u001b[90m└────────────────────────────────────────────────────────────┘"
    },
    "break",
    {
      "type": "custom",
      "format": "\u001b[90m┌──────────────────────── Purple Linux ──────────────────────┐"
    },
    {
      "type": "os",
      "key": " OS",
      "keyColor": "magenta"
    },
    {
      "type": "title",
      "key": "│ ├ USER/HOST",
      "format": "{user-name}@{host-name}",
      "keyColor": "magenta"
    },
    {
      "type": "kernel",
      "key": "│ ├ KERNEL",
      "keyColor": "magenta"
    },
    {
      "type": "packages",
      "key": "│ ├󰏖 PACKAGES",
      "keyColor": "magenta"
    },
    {
      "type": "terminal",
      "key": "│ ├ TERMINAL",
      "keyColor": "magenta"
    },
    {
      "type": "terminalfont",
      "key": "│ ├󰛖 TERMINAL FONT",
      "keyColor": "magenta"
    },
    {
      "type": "shell",
      "key": "└ └ SHELL",
      "keyColor": "magenta"
    },
    {
      "type": "custom",
      "format": "\u001b[90m└────────────────────────────────────────────────────────────┘"
    },
    "break",
    {
      "type": "custom",
      "format": "\u001b[90m┌─────────────────── Desktop Environment ────────────────────┐"
    },
    {
      "type": "de",
      "key": " DE",
      "keyColor": "cyan"
    },
    {
      "type": "lm",
      "key": "│ ├ DISPLAY MANAGER",
      "keyColor": "cyan"
    },
    {
      "type": "wm",
      "key": "│ ├ WINDOW MANAGER",
      "keyColor": "cyan"
    },
    {
      "type": "wmtheme",
      "key": "│ ├ THEME",
      "keyColor": "cyan"
    },
    {
      "type": "icons",
      "key": "│ ├󰉼 ICONS",
      "keyColor": "cyan"
    },
    {
      "type": "font",
      "key": "│ ├󰛖 SYSTEM FONT",
      "format": "{3}",
      "keyColor": "cyan"
    },
    {
      "type": "custom",
      "format": "\u001b[90m└────────────────────────────────────────────────────────────┘"
    },
    "break",
    {
      "type": "custom",
      "format": "\u001b[90m┌─────────────────────── Other Info ─────────────────────────┐"
    },
    {
      "type": "wifi",
      "key": "│ ├󰤢 wifi",
      "keyColor": "yellow"
    },
    {
      "type": "camera",
      "key": "│ ├󰖠 camera",
      "keyColor": "yellow"
    },
    {
      "type": "media",
      "key": "│ ├ media",
      "keyColor": "yellow"
    },
    {
      "type": "custom",
      "format": "\u001b[90m└────────────────────────────────────────────────────────────┘"
    },
    {
      "type": "custom",
      "format": "\u001b[90m┌─────────────────────── Colors ─────────────────────────────┐"
    },
    {
      "type": "colors",
      "key": "│ ├󰛖 Palette",
      "keyColor": "red",
      "symbol": "circle"
    },
    {
      "type": "custom",
      "format": "\u001b[90m└────────────────────────────────────────────────────────────┘"
    }
  ]
}

1 Like

thank to @cybro @cscs & @dalto

i am SO SO SO THANKFUL TO HAVE YOU ALL AS MY PURPLE FRIENDS

truly an awesome forum this is

SPECIAL THANK YOU TO @cybro for making a simple fix even simpler for my stupid brain LOL

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.