purrfetch
1.6.1 MIT

Configuration

purrfetch reads a simple JSON file for logo, colour and module order, and can also load a fastfetch-style config.jsonc. Flags always win over files.


Config generator

Generates config.json. Toggle modules, pick a logo, copy the result.

Presets
Modules (checked items appear in this order)
config.json
try it on the command line

Config file reference

Save the generated file as config.json in purrfetch's config directory for your platform. A fastfetch-style config.jsonc in the same folder takes precedence over it.

Config directory by platform
PlatformConfig directory
Linux~/.config/purrfetch/
macOS~/Library/Application Support/purrfetch/
Windows%AppData%\purrfetch\. The setup program creates it along with a starter config.json, so there is a file to edit after installing.
Simple config keys
KeyTypeMeaning
logostring"auto", "cat", "small", "none", a bundled distro name, or a path to your own art
colorboolfalse is the same as --no-color; NO_COLOR also wins
structurestringModules and their order, same syntax as --structure

Precedence

  1. Command-line flags: explicit -l, -s, --no-color
  2. Config file: --config, or an auto-loaded config.jsonc
  3. Simple config: config.json
  4. Built-in defaults: auto logo, all modules, colour on

A malformed config is reported on stderr and skipped. PURRFETCH_LOGO_PROTOCOL=halfblock forces the text-art fallback for image logos.

fastfetch-style config.jsonc

The same file fastfetch reads can drive purrfetch: module order, labels, key colours, custom rows, section breaks, separators and image logos. Comments and trailing commas are allowed.

config.jsonc
{
  "logo": {
    "source": "small",
    "width": 30
  },
  "display": {
    "separator": "  "
  },
  "modules": [
    { "type": "title", "format": "{user-name}@{host-name}" },
    "break",
    { "type": "os",     "key": "│ ├ OS",     "keyColor": "magenta" },
    { "type": "host",   "key": "│ ├ Host" },
    { "type": "kernel", "key": "│ ├ Kernel", "keyColor": "blue" },
    { "type": "uptime", "key": "│ ├ Uptime" },
    "break",
    { "type": "custom", "format": "  Hardware" },
    { "type": "cpu",    "key": "│ ├ CPU" },
    { "type": "gpu",    "key": "│ ├ GPU" },
    { "type": "memory", "key": "│ ├ Memory" },
    { "type": "disk",   "key": "│ └ Disk", "format": "{1} / {2} ({3})" }
  ]
}
Custom rows and images. {"type":"custom","format":"..."} prints literal text, handy for section headings. Image logos (png, jpeg, gif) use the kitty graphics protocol in kitty/ghostty and half-block ANSI art elsewhere. Unsupported formats fall back to the built-in logo with a warning.