[Preset Share] Tree-Structured Preset tailored for GitHub Bug Reports

Aberta Para iniciantes
#2,675 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
1/5
Tempo estimado
Menos de uma hora
Facilidade para iniciantes
82/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
c, json
Domínio
cli

Direção de pesquisa

O texto inclui um preset completo e diz para salvá-lo como issue-report.jsonc e executar fastfetch.exe -c issue-report.jsonc. Comece verificando os exemplos de preset ou configuração do repositório para descobrir onde os presets da comunidade devem ficar. A tarefa estará concluída quando o preset estiver disponível no formato previsto pelo projeto e o comando puder carregá-lo.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Hey team,

Not a bug report or a feature request, just dropping a custom preset here since I wanted to share it with the community without going through the hassle of opening a formal PR.

I needed a fastfetch preset specifically designed to be pasted into GitHub issues and bug reports. The default templates are visually great for rice setups, but they seem too noisy for technical debugging—they expose local IPs, UI themes, window managers, and real-time metrics like uptime or used RAM that aren't relevant for static issue tracking.

This preset tries to fix that by offering:

  • Strict Separation: Hardware and Environment are isolated into two distinct blocks with ANSI-highlighted headers.

  • Zero PII & Noise: Stripped of IPs, uptime, theming things, dynamic percentages, etc.

  • Precise Storage Metrics: Separates physical drives (SSD/HDD, Fixed/Removable) from logical OS volumes and the Pagefile.

  • Tree Structure: Uses a fixed-width ASCII tree layout that renders fine inside GitHub markdown code blocks without alignment collision.

  • Future-Proof: Built using nominal variables instead of positional indexes.

Save it as issue-report.jsonc and run it with fastfetch.exe -c issue-report.jsonc.

{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "logo": {
        "source": "",
        "padding": {
            "top": 1,
            "right": 3
        }
    },
    "display": {
        "separator": ":  ",
        "key": {
            "width": 16
        },
        "color": {
            "keys": "38;5;39",
            "separator": "38;5;240"
        },
        "size": {
            "binaryPrefix": "jedec"
        }
    },
    "modules": [
        {
            "type": "custom",
            "format": "\u001b[1;38;5;45m┌── \u001b[1;38;5;16;48;5;45m HARDWARE \u001b[0m\u001b[1;38;5;45m ───────────────\u001b[0m"
        },
        {
            "type": "board",
            "key": "├─ Board"
        },
        {
            "type": "bios",
            "key": "├─ BIOS"
        },
        {
            "type": "cpu",
            "key": "├─ CPU",
            "format": "{name} ({cores-physical} Cores / {cores-logical} Threads) @ {freq-max}"
        },
        {
            "type": "gpu",
            "key": "├─ GPU",
            "format": "{name} @ {frequency} GHz"
        },
        {
            "type": "physicalmemory",
            "key": "├─ RAM"
        },
        {
            "type": "physicaldisk",
            "key": "├─ Storage",
            "format": "{name} - {size} [{physical-type}, {removable-type}]"
        },
        {
            "type": "monitor",
            "key": "├─ Monitor",
            "format": "{name} - {width}x{height} px @ {refresh-rate} Hz - {physical-width}x{physical-height} mm"
        },
        {
            "type": "mouse",
            "key": "├─ Mouse"
        },
        {
            "type": "keyboard",
            "key": "└─ Keyboard"
        },
        "break",
        {
            "type": "custom",
            "format": "\u001b[1;38;5;45m┌── \u001b[1;38;5;16;48;5;45m ENVIRONMENT \u001b[0m\u001b[1;38;5;45m ────────────\u001b[0m"
        },
        {
            "type": "os",
            "key": "├─ OS"
        },
        {
            "type": "kernel",
            "key": "├─ Kernel"
        },
        {
            "type": "title",
            "key": "├─ User",
            "format": "{user-name}@{host-name}"
        },
        {
            "type": "locale",
            "key": "├─ Locale"
        },
        {
            "type": "disk",
            "key": "├─ Volume",
            "format": "[{mountpoint}] {size-total} - {filesystem}"
        },
        {
            "type": "swap",
            "key": "├─ Pagefile",
            "format": "{total}"
        },
        {
            "type": "shell",
            "key": "├─ Shell"
        },
        {
            "type": "terminal",
            "key": "├─ Terminal"
        },
        {
            "type": "vulkan",
            "key": "├─ Vulkan"
        },
        {
            "type": "opengl",
            "key": "├─ OpenGL"
        },
        {
            "type": "opencl",
            "key": "└─ OpenCL"
        },
        "break"
    ]
}

EDIT: I made a few updates to include additional information, which are not shown in the screenshots below.

Screenshots

Image Image
Linguagem predominante
C
Estrelas
25.4k
Forks
947
Merge médio
1d 8h
PRs com merge (30d)
21

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de fastfetch-cli/fastfetch

Todas as issues de fastfetch-cli/fastfetch

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.