Presets-Referenz

xfetch wird mit einer umfassenden Bibliothek von Preset-Konfigurationen ausgeliefert, die verschiedene Layouts, visuelle Stile und Plugin-Integrationen demonstrieren. Diese Presets befinden sich im configs/-Repository.

Layout-Presets

Befindlich in configs/xfetch/presets/layouts/, demonstrieren diese jeden verfugbaren Layout-Stil mit vollstandigen Modulsets.

box

Rendert alle Module innerhalb einer Box mit abgerundeten Ecken und Trennlinien zwischen Gruppen.

{
    "layout": "box",
    "modules": ["user", "hostname", "sep", "os", "kernel", "uptime", "packages",
                 "shell", "terminal", "wm", "cpu", "gpu", "memory", "disk",
                 "battery", "local_ip", "sep", "palette"],
    "show_colors": true
}

dots

Klassisches Layout mit ...-Trennern alle 3 Elemente. Verschiedene Farbthemen pro Modulgruppe.

pacman

Gerahmtes Layout mit Pac-Man-thematischen Kopf-Icons und FuRtext.

{
    "layout": "pacman",
    "header_icons": ["\u15a7", "\u25cf", "\u25cf", "\u25cf", "\u25cf"],
    "footer_text": "GAME OVER",
    "modules": ["header", "os", "kernel", "uptime", "packages", "shell",
                 "terminal", "wm", "cpu", "gpu", "memory", "disk",
                 "battery", "local_ip", "palette"]
}

section

Gruppiertes Layout mit titelierten Abschnitten.

{
    "layout": "section",
    "modules": [
        {
            "type": "group", "title": "Hardware",
            "modules": ["hostname", "cpu", "gpu", "memory", "disk"]
        },
        {
            "type": "group", "title": "Software",
            "modules": ["os", "kernel", "packages", "terminal", "shell"]
        },
        {
            "type": "group", "title": "Uptime/Age/DT",
            "modules": ["uptime", "wm", "local_ip", "battery"]
        },
        "palette"
    ]
}

side-block

Zweispaltiges Layout mit Textlabels als Icons und Werten nebeneinander.

tree

Hierarchischer Baum mit verschachtelten Gruppen, die OS-, DE- und PC-Kategorien anzeigen.

Showcase-Presets

Befindlich in configs/xfetch/presets/showcase/, diese 23 Presets demonstrieren kreative visuelle Kombinationen.

Klassische Layout-Presets

DateiLogoIconsFarbenModule
arch_compact_cyan.jsoncarch.txtStandardGanz Cyan4 (os, kernel, uptime, packages)
arch_full_blue.jsoncarch.txtStandardGanz Blau13 (vollstandiges System)
green_chevrons_core.jsoncKeins>>Ganz Grun5 (Kern)
minimal_plus_monochrome.jsoncminimal.txt+Dunkelgrau6
minimal_red_compact.jsoncminimal.txtOS:, K:, etc.Ganz Rot4
monochrome_no_icons.jsoncKeins"" (leer)Ganz Wei4
neon_hardware_compact.jsoncKeinsNerd FontsCyan + Magenta4
rainbow_letters.jsoncKeinsR-O-Y-G-B-I-VRegenbogen7
x_logo_full_system.jsoncx_logo.txtStandardRegenbogenahnlich10
x_logo_red_hardware.jsoncx_logo.txt\u25cf (Punkt)Ganz Rot4

Pac-Man-Layout-Presets

DateiKopfFuerModulePalettenstil
pacman_full_white.jsoncStandardStandardVollstandigStandard
pacman_system_compact.jsoncStandardStandardos, kernel, memoryStandard
pacman_abc_shell.jsoncA, B, CABCos, shellStandard
pacman_minus_uptime.jsonc-, -, -MINUSuptimeStandard
pacman_numeric_hardware.jsonc1, 2, 3NUMcpu, memoryStandard
pacman_plus_os.jsonc+, +, +PLUSosStandard
pacman_question_packages.jsonc?, ?QUESTpackagesStandard
pacman_star_uptime.jsoncstar, star, starSTARos, uptimeStandard
pacman_symbols_portable.jsonc!, @, #SYMdisk, batteryStandard
pacman_xox_kernel.jsoncx, o, xXOXos, kernelStandard
pacman_palette_dots.jsoncStandardStandardVollstandigdots
pacman_palette_lines.jsoncStandardStandardVollstandiglines
pacman_palette_triangles.jsoncStandardStandardVollstandigtriangles

Plugin-Presets

Befindlich in configs/plugins/, demonstrieren diese Presets Plugin-Integrationen.

Animate-Logo-Preset

Datei: configs/plugins/animate-logo/presets/xfetch_pacman_animate.jsonc

Demonstriert animierte ASCII-Logos mit dem Pac-Man-Layout:

{
    "layout": "pacman",
    "ascii": "~/.config/xfetch/logos/xfetch_logo.txt",
    "logo_animation": {
        "plugin": "animate-logo",
        "fps": 12,
        "duration_ms": 1200,
        "loop": false
    }
}

Full-Stack-Preset

Datei: configs/plugins/full-stack/presets/full_stack.jsonc

Demonstriert alle Funktionen zusammen: Animation, mehrere Info-Plugins, gruppiertes Abschnittslayout.

{
    "layout": "section",
    "logo_animation": {
        "plugin": "animate-logo",
        "style": "frame",
        "fps": 60,
        "duration_ms": 7500,
        "loop": true,
        "frames_path": "~/.config/xfetch/logos/decryptfull.txt"
    },
    "info_plugins": [
        { "plugin": "github-stats", "args": { "username": "xscriptor", "max-lines": 4 } },
        { "plugin": "docker" }
    ],
    "modules": [
        { "type": "group", "title": "Hardware", "modules": ["hostname", "cpu", "gpu", "memory", "swap", "disk", "battery"] },
        { "type": "group", "title": "Software", "modules": ["os", "kernel", "packages", "shell", "wm", "terminal", "local_ip", "plugin:docker"] },
        { "type": "group", "title": "Session", "modules": ["user", "uptime", "datetime", "plugin:github-stats"] },
        "palette"
    ],
    "icons": {
        "plugin:docker": "\ue7b0",
        "plugin:github-stats": "\uf09b"
    },
    "colors": {
        "plugin:github-stats": "Cyan",
        "plugin:docker": "Cyan"
    }
}

Erforderliche Plugins: animate-logo, docker, github-stats

Enhanced Modules Preset (Phase 6)

Datei: configs/plugins/new-modules/presets/enhanced_modules.jsonc

Demonstriert alle sechs Phase-6-erweiterten Module in einem gruppierten Layout:

{
    "layout": "section",
    "info_plugins": [
        { "plugin": "music-player" },
        { "plugin": "weather", "args": { "location": "auto" } },
        { "plugin": "timezone" },
        { "plugin": "user-info" },
        { "plugin": "display-resolution" },
        { "plugin": "theme-detection" }
    ],
    "modules": [
        { "type": "group", "title": "System", "modules": ["os", "kernel", "hostname", "uptime"] },
        { "type": "group", "title": "User", "modules": ["plugin:user-info", "plugin:timezone", "plugin:theme-detection"] },
        { "type": "group", "title": "Hardware", "modules": ["cpu", "gpu", "memory", "disk", "plugin:display-resolution"] },
        { "type": "group", "title": "Media", "modules": ["plugin:music-player", "plugin:weather"] },
        "palette"
    ],
    "icons": {
        "plugin:user-info": "\uf007",
        "plugin:timezone": "\uf43a",
        "plugin:theme-detection": "\uf07c",
        "plugin:display-resolution": "\uf26c",
        "plugin:music-player": "\uf001",
        "plugin:weather": "\uf185"
    },
    "colors": {
        "plugin:user-info": "Magenta",
        "plugin:timezone": "Cyan",
        "plugin:theme-detection": "Blue",
        "plugin:display-resolution": "Green",
        "plugin:music-player": "Yellow",
        "plugin:weather": "Cyan"
    }
}

Erforderliche Plugins: music-player, weather, timezone, user-info, display-resolution, theme-detection

Presets verwenden

# Mit einem beliebigen Preset ausfuhren
xfetch --config /pfad/zu/preset.jsonc

# Ein Preset als Standard verwenden
cp configs/xfetch/presets/showcase/neon_hardware_compact.jsonc ~/.config/xfetch/config.jsonc

# Eine Standardkonfiguration als Ausgangspunkt generieren
xfetch --gen-config

Die generierte Standardkonfiguration verwendet das Abschnittslayout mit gruppierten Modulen und vollstandiger Icon-/Farbanpassung.