Skip to content

[RFC] Request for testing of JSON config #471

@CarterLi

Description

@CarterLi

There are no documentations yet ( JSON schema is planned ). Keys can mostly map to the traditional command flags. Here is an example ( when config.jsonc is found, config.conf will be ignored )

My config file

// ~/.config/fastfetch/config.json
{
  "logo": { // https://github.com/fastfetch-cli/fastfetch/blob/71beb626c30c5755613d743d9349f7a95effbe6c/src/fastfetch.c#L900
    "type": "iterm",
    "source": "/home/carter/linux.png", // https://en.wikipedia.org/wiki/Linux#/media/File:Tux.svg
    "width": 30,
    "height": 14,
    "padding": {
      "top": 2,
      "left": 1,
      "right": 2
    }
  },
  "general": { // https://github.com/fastfetch-cli/fastfetch/blob/71beb626c30c5755613d743d9349f7a95effbe6c/src/fastfetch.c#L872
    "allowSlowOperations": true,
    "stat": true
  },
  "display": { // https://github.com/fastfetch-cli/fastfetch/blob/71beb626c30c5755613d743d9349f7a95effbe6c/src/fastfetch.c#L906
    "color": {
      "keys": "yellow"
    },
    "percentType": 9,
    "hideCursor": false
  },
  "modules": [
    "title",
    "separator",
    "os",
    "host",
    "kernel",
    "uptime",
    "processes",
    "packages",
    "shell",
    {
      "type": "display",
      "detectName": true
    },
    "brightness",
    "de",
    "wm",
    "wmtheme",
    "theme",
    "icons",
    "cursor",
    "terminal",
    "terminalfont",
    {
      "type": "cpu",
      "temp": true
    },
    {
      "type": "gpu",
      "forceVulkan": true
    },
    "memory",
    "swap",
    "disk",
    "media",
    "battery",
    {
      "type": "localip",
      "showIpv6": true
    },
    "cpuusage",
    "wifi",
    "locale",
    "vulkan",
    "opengl",
    "bluetooth",
    "sound",
    "datetime",
    "break",
    "colors"
  ]
}

The result

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions