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.
Nothing selected. An empty structure means “show everything”, the default.
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.
| Platform | Config 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. |
| Key | Type | Meaning |
|---|---|---|
logo | string | "auto", "cat", "small", "none", a bundled distro name, or a path to your own art |
color | bool | false is the same as --no-color; NO_COLOR also wins |
structure | string | Modules and their order, same syntax as --structure |
Precedence
- Command-line flags: explicit
-l,-s,--no-color - Config file:
--config, or an auto-loadedconfig.jsonc - Simple config:
config.json - 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.
{
"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})" }
]
}
{"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.