Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Configuration

Carter Li edited this pageAug 31, 2025 ·19 revisions

This document provides comprehensive guidance on configuring Fastfetch to suit your needs.

Basic Configuration

Fastfetch uses JSONC (JSON with comments) for configuration. The default configuration file is located at~/.config/fastfetch/config.jsonc

You can generate a minimal configuration file using:

fastfetch --gen-config

If you prefer a full configuration file with all default options available:

fastfetch --gen-config-full

Using an editor withJSON schema support is highly suggested. If unsure, I suggest usingvscode orhelix.

Configuration Structure

The configuration file has the following main sections:

{"$schema":"https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",// Optional: Provides IDE intelligence"logo": {/* Logo configuration*/ },"display": {/* Display settings*/ },"modules": [/* Modules to display*/ ]}

Logo Configuration

Configure how the logo appears:

"logo": {"type":"auto",// Logo type: auto, builtin, small, file, etc."source":"arch",// Built-in logo name or file path"width":65,// Width in characters"height":35,// Height in characters"padding": {"top":0,// Top padding"left":0,// Left padding"right":2// Right padding    },"color": {// Override logo colors"1":"blue","2":"green"    }}

Display Configuration

Control how information is displayed:

"display": {"separator":":",// Separator between keys and values"color": {"keys":"blue",// Key color"title":"red"// Title color    },"key": {"width":12,// Aligns keys to this width"type":"string"// string, icon, both, or none    },"bar": {"width":10,// Width of percentage bars"char": {"elapsed":"",// Character for elapsed portion"total":"-",// Character for total portion        },    },"percent": {"type":9,// 1=number, 2=bar, 3=both, 9=colored number"color": {"green":"green","yellow":"light_yellow","red":"light_red"        }    }}

Module Configuration

Specify which modules to display and their configuration:

"modules": ["title","separator",    {"type":"os","key":"OS","keyColor":"blue","format":"{name} {version}"    },    {"type":"kernel","key":"Kernel"    },    {"type":"memory","key":"Memory","percent": {"type":3,// Show both percentage number and bar"green":30,// Values below 30% in green"yellow":70// 30-70% in yellow, >70% in red        }    }]

Format Strings

Many modules support custom format strings. For example:

{"type":"cpu","format":"{name} ({cores-physical}C/{cores-logical}T) @ {freq-max}"}

Usefastfetch -h <module>-format to see available format options for each module.

Tips for Better Configuration

  1. Start with a preset: Usefastfetch --config examples/X to start with a minimal configuration and build from there.

  2. Use JSON schema: Adding the$schema line enables code completion and validation in editors like VSCode.

Documentation

Refer to:https://gitlab.com/CarterLi/fastfetch/-/wikis/Json-Schema (Gitlab link is used because of Github Wiki limitation)

Generated usingjson-schema-for-humans with

generate-schema-doc ~/fastfetch/doc/json_schema.json --config template_name=md Json-Schema.md

Also refer tofastfetch --help for more detailed explanation.

Examples

*.jsonc inhttps://github.com/fastfetch-cli/fastfetch/tree/dev/presets/examples

You may test it withfastfetch --config examples/x.jsonc

Notes

  • Special charactors should be encoded as\uXXXX in JSON. Notably,\e or\033 should be\u001b.

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp