Fastfetch Config Tinkering

Can you share your config? I’ve been trying to get my battery to display as a bar, not just a percentage.

{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "logo": {
        "type": "auto",
        "source": "/home/erik/Pictures/En-OS-Noodly-OG-En-OS-Logo.png",
        "width": 20,          // Width in characters (for image logos)
        "height": 10,         // Height in characters (for image logos)
        "padding": {
            "top": 5,           // Top padding
            "left": 1,          // Left padding
            "right": 1          // Right padding
        }
    },
    "display": {
        "color": {
            "keys": "white"
        },
        "separator": "",
        "constants": [
            "──────────────────────────────────────────────────────",   // {$1} - horizontal line for borders
            "\u001b[55D",                                               // {$2} - move cursor left 55 columns
            "\u001b[55C",                                               // {$3} - move cursor right 55 columns
            "\u001b[54C"                                                // {$4} - move cursor right 54 columns
        ],
        "brightColor": true
    },
    "modules": [
        "break",
        {
            "type": "version",
            "key": "┌────────────┬─{$1}┐\u001b[37D",
            "format": "\u001b[1m{#keys} {1} - {2} "
        },
        {
            "type": "os",
            "key": "│  \u001b[s{sysname}\u001b[u\u001b[10C│{$3}│{$2}"
        },
        {
            "type": "kernel",
            "key": "│  \u001b[sKernel\u001b[u\u001b[10C│{$3}│{$2}"
        },
        {
            "type": "datetime",
            "key": "│  Fetched   │{$3}│{$2}",
            "format": "{day-pretty}-{month-pretty}-{year} {hour-pretty}:{minute-pretty}:{second-pretty} {timezone-name}"
        },
        {
            "type": "locale",
            "key": "│  Locale    │{$3}│{$2}"
        },
        {
            "type": "custom",
            "key": "├────────────┴─{$1}┤",                // Bottom border of the entire layout
            "format": ""
        },

        // Hardware section with cyan color theme
        {
            "type": "custom",
            "key": "│{#cyan}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_cyan} Hardware "
        },
        {
            "type": "chassis",
            "key": "│{#cyan}│ Chassis   │{$4}│{#keys}│{$2}"
        },
        {
            "type": "cpu",
            "key": "│{#cyan}│ CPU       │{$4}│{#keys}│{$2}",
            "format": "{name} @{freq-max}",
            "showPeCoreCount": false
        },
        {
            "type": "gpu",
            "key": "│{#cyan}│ GPU       │{$4}│{#keys}│{$2}"
        },
        {
            "type": "memory",
            "key": "│{#cyan}│ RAM       │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            }
        },
        {
            "type": "swap",
            "key": "│{#cyan}│ SWAP      │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            }
        },
        {
            "type": "disk",
            "key": "│{#cyan}│ Disk      │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            },
        },
        {
            "type": "battery",
            "key": "│{#cyan}│ Battery   │{$4}│{#keys}│{$2}"
            // "keyColor": "34",
        },
        {
            "type": "custom",
            "key": "│{#cyan}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

        // Network section with red color theme
        {
            "type": "custom",
            "key": "│{#red}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_red} Network "
        },
        {
            "type": "command",
            "key": "│{#red}│ Ethernet  │{$4}│{#keys}│{$2}",
            "text": "IF=eth0; printf \"%s %s %s\\n\" \"$IF\" \"$(cat /sys/class/net/$IF/operstate)\" \"$(cat /sys/class/net/$IF/speed 2>/dev/null | sed 's/$/Mb\\/s/')\""
        },
        {
            "type": "wifi",
            "key": "│{#red}│ WiFi      │{$4}│{#keys}│{$2}"
        },
        {
            "type": "custom",
            "key": "│{#red}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

                // Desktop section with green color theme
        {
            "type": "custom",
            "key": "│{#green}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_green} Desktop "
        },
        {
            "type": "de",
            "key": "│{#green}│ Desktop   │{$4}│{#keys}│{$2}"
        },
        {
            "type": "wm",
            "key": "│{#green}│ Session   │{$4}│{#keys}│{$2}"
        },
        {
            "type": "display",
            "key": "│{#green}│ Display   │{$4}│{#keys}│{$2}",
            "compactType": "original-with-refresh-rate"
        },
        {
             "type": "gpu",
             "key": "│{#green}│ G-Driver  │{$4}│{#keys}│{$2}",
             "format": "{driver}"
        },
        {
            "type": "custom",
            "key": "│{#green}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },


        // Terminal section with yellow color theme
        {
            "type": "custom",
            "key": "│{#yellow}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_yellow} Terminal "
        },
        {
            "type": "shell",
            "key": "│{#yellow}│ Shell     │{$4}│{#keys}│{$2}"
        },
        {
            "type": "terminal",
            "key": "│{#yellow}│ Terminal  │{$4}│{#keys}│{$2}"
        },
        {
            "type": "terminalfont",
            "key": "│{#yellow}│ Term Font │{$4}│{#keys}│{$2}"
        },
        // {
        //     "type": "terminaltheme",
        //     "key": "│{#yellow}│ Colors    │{$4}│{#keys}│{$2}"
        // },
        {
            "type": "packages",
            "key": "│{#yellow}│ Packages  │{$4}│{#keys}│{$2}"
        },
        {
            "type": "custom",
            "key": "│{#yellow}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

        // Development section with red color theme
        // {
        //     "type": "custom",
        //     "key": "│{#red}┌───────────┬{$1}┐{#keys}│\u001b[37D",
        //     "format": "{#bright_red} Development "
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Rust      │{$4}│{#keys}│{$2}",
        //     "text": "rustc --version",
        //     "format": "rustc {~6,13}"                         // Print 6th to 13th characters (version number)
        // },
        // {
        //     "type": "command",
        //     "condition": {
        //         "!system": "Windows"                          // Posix version
        //     },
        //     "key": "│{#red}│ Clang     │{$4}│{#keys}│{$2}",
        //     "text": "clang --version | head -1 | awk '{print $NF}'",
        //     "format": "clang {}"
        // },
        // {
        //     "type": "command",
        //     "condition": {
        //         "system": "Windows"                           // Windows version
        //     },
        //     "key": "│{#red}│ Clang     │{$4}│{#keys}│{$2}",
        //     "text": "clang --version | findstr version",      // Finds the line with "version"
        //     "format": "clang {~-6}"                           // Prints the last 6 characters (version number)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ NodeJS    │{$4}│{#keys}│{$2}",
        //     "text": "node --version",
        //     "format": "node {~1}"                             // {~1} removes first character (v)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Go        │{$4}│{#keys}│{$2}",
        //     "text": "go version | cut -d' ' -f3",
        //     "format": "go {~2}"                               // {~2} removes first 2 characters (go)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Zig       │{$4}│{#keys}│{$2}",
        //     "text": "zig version",
        //     "format": "zig {}"
        // },
        // {
        //     "type": "editor",
        //     "key": "│{#red}│ Editor    │{$4}│{#keys}│{$2}"
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Git       │{$4}│{#keys}│{$2}",
        //     "text": "git version",
        //     "format": "git {~12}"
        // },
        // {
        //     "type": "font",
        //     "key": "│{#red}│ Interface │{$4}│{#keys}│{$2}",
        //     "format": "{font1}"
        // },
        // {
        //     "type": "custom",
        //     "key": "│{#red}└───────────┴{$1}┘{#keys}│",
        //     "format": ""
        // },

        // Uptime section with magenta color theme
        {
            "type": "custom",
            "key": "│{#magenta}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_magenta} Uptime "
        },
        {
            "type": "uptime",
            "key": "│{#magenta}│ Uptime    │{$4}│{#keys}│{$2}"
        },
        {
            "type": "users",
            "myselfOnly": true,                               // Only show current user
            "key": "│{#magenta}│ Login     │{$4}│{#keys}│{$2}"
        },
        {
            "condition": {                                    // Conditional module: only show on non-macOS
                "!system": "macOS"
            },
            "type": "disk",
            "key": "│{#magenta}│ OS Age    │{$4}│{#keys}│{$2}",
            "folders": "/",                                   // Check root filesystem
            "format": "{create-time:10} [{days} days]"        // Show creation time and age in days
        },
        {
            "condition": {                                    // Conditional module: only show on macOS
                "system": "macOS"
            },
            "type": "disk",
            "key": "│{#magenta}│ OS Age    │{$4}│{#keys}│{$2}",
            "folders": "/System/Volumes/VM",                 // Work around for APFS on macOS
            "format": "{create-time:10} [{days} days]"
        },
        {
            "type": "custom",
            "key": "│{#magenta}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },
        {
            "type": "custom",
            "key": "│ {$3}            │{$2}",
            "format":"{#37}󰮯 {#37} • {#37}• {#37}• {#31} 󰊠 {#32} 󰊠 {#33} 󰊠 {#34} 󰊠 {#35} 󰊠 {#36} 󰊠"
            // "format":"{#37}󰮯 {#31} 󰧞 {#32} 󰧞 {#33} 󰧞 {#36} 󰊠 {#35} 󰊠 {#34} 󰊠 {#33} 󰊠 {#32} 󰊠 {#31} 󰊠 "
        },
        {
            "type": "custom",
            "key": "└──────────────{$1}┘",                // Bottom border of the entire layout
            "format": ""
        },

        // End with color palette and line break
        // "break",                                             // Add a blank line
        //"colors"                                             // Display color palette

        "break",
    ]
}

Sure thing!

{
“type”: “battery”,
“key”: “│{#blue}│ Battery │{$4}│{#keys}│{$2}”,
“percent”: {
“type”: 3, // 3 = show number + bar + percentage
“red”: 20, // Below 20% usage is red
“blue”: 50 // 30-50% is yellow, >50% is green
}

Just type strg + e

tippe oder füge den Code hier ein

Or use the button marked in the screenshot.

EDIT: Oh you got it :rofl:

Yeah, after like 4 attempts … I’ll try to remember that. Very used to using insert code here <----Seee? The [ code ] tag does work … hmmmmmmm … I’m in a window that allows HTML … Okkk, learning here. LOL

Got it the way I like it now. I think the line-icons look a little cluttered…for now. :wink:

Is there a way to pull the notebook branding instead of just “Notebook”?

//
//
//  ░█▀▀░█▀█░█▀▄░█▀▀░█▀█░█░█░█▀█░█░█░█▀▄░░░█▀█░█▀▀
//  ░█▀▀░█░█░█░█░█▀▀░█▀█░▀▄▀░█░█░█░█░█▀▄░░░█░█░▀▀█
//  ░▀▀▀░▀░▀░▀▀░░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░▀░▀░░░▀▀▀░▀▀▀
//  ░░░░░░░█▀▀░█▀█░█▀▀░▀█▀░█▀▀░█▀▀░▀█▀░█▀▀░█░█
//  ░░░░░░░█▀▀░█▀█░▀▀█░░█░░█▀▀░█▀▀░░█░░█░░░█▀█
//  ░░░░░░░▀░░░▀░▀░▀▀▀░░▀░░▀░░░▀▀▀░░▀░░▀▀▀░▀░▀
//
//  Inspired by many and cobbled together by me!
{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "logo": {
        "type": "auto",
        "source": "/home/erik/Pictures/En-OS-Noodly-OG-En-OS-Logo.png",
        "width": 20,          // Width in characters (for image logos)
        "height": 10,         // Height in characters (for image logos)
        "padding": {
            "top": 5,           // Top padding
            "left": 1,          // Left padding
            "right": 1          // Right padding
        }
    },
    "display": {
        "color": {
            "keys": "white"
        },
        "separator": "",
        "constants": [
            "──────────────────────────────────────────────────────",   // {$1} - horizontal line for borders
            "\u001b[55D",                                               // {$2} - move cursor left 55 columns
            "\u001b[55C",                                               // {$3} - move cursor right 55 columns
            "\u001b[54C"                                                // {$4} - move cursor right 54 columns
        ],
        "brightColor": true,
        "bar": {
            "width": 10,       // Width of percentage bars
            "char": {
                "elapsed": "●", // Character for elapsed portion
                // "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"
            }
        }
    },
    "modules": [
        "break",
        {
            "type": "version",
            "key": "┌────────────┬─{$1}┐\u001b[37D",
            "format": "\u001b[1m{#keys} {1} - {2} "
        },
        {
            "type": "os",
            "key": "│  \u001b[s{sysname}\u001b[u\u001b[10C│{$3}│{$2}"
        },
        {
            "type": "kernel",
            "key": "│  \u001b[sKernel\u001b[u\u001b[10C│{$3}│{$2}"
        },
        {
            "type": "datetime",
            "key": "│  Fetched   │{$3}│{$2}",
            "format": "{day-pretty}-{month-pretty}-{year} {hour-pretty}:{minute-pretty}:{second-pretty} {timezone-name}"
        },
        {
            "type": "locale",
            "key": "│  Locale    │{$3}│{$2}"
        },
        {
            "type": "custom",
            "key": "├────────────┴─{$1}┤",                // Bottom border of the entire layout
            "format": ""
        },

        // Hardware section with cyan color theme
        {
            "type": "custom",
            "key": "│{#cyan}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_cyan} Hardware "
        },
        {
            "type": "chassis",
            "key": "│{#cyan}│ Chassis   │{$4}│{#keys}│{$2}"
        },
        {
            "type": "cpu",
            "key": "│{#cyan}│ CPU       │{$4}│{#keys}│{$2}",
            "format": "{name} @{freq-max}",
            "showPeCoreCount": false
        },
        {
            "type": "gpu",
            "key": "│{#cyan}│ GPU       │{$4}│{#keys}│{$2}"
        },
        {
            "type": "memory",
            "key": "│{#cyan}│ RAM       │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            }
        },
        {
            "type": "swap",
            "key": "│{#cyan}│ SWAP      │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            }
        },
        {
            "type": "disk",
            "key": "│{#cyan}│ Disk      │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            },
        },
        {
            "type": "battery",
            "key": "│{#cyan}│ Battery   │{$4}│{#keys}│{$2}",
            //"key": "│{#blue}│ Battery │{$4}│{#keys}│{$2}",
            "percent": {
            "type": 3, // 3 = show number + bar + percentage
            "red": 20, // Below 20% usage is red
            "blue": 50 // 30-50% is yellow, >50% is green
            // "keyColor": "34",
            },
        },
        {
            "type": "custom",
            "key": "│{#cyan}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

        // Network section with red color theme
        {
            "type": "custom",
            "key": "│{#red}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_red} Network "
        },
        {
            "type": "command",
            "key": "│{#red}│ Ethernet  │{$4}│{#keys}│{$2}",
            "text": "IF=eth0; printf \"%s %s %s\\n\" \"$IF\" \"$(cat /sys/class/net/$IF/operstate)\" \"$(cat /sys/class/net/$IF/speed 2>/dev/null | sed 's/$/Mb\\/s/')\""
        },
        {
            "type": "wifi",
            "key": "│{#red}│ WiFi      │{$4}│{#keys}│{$2}"
        },
        {
            "type": "custom",
            "key": "│{#red}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

                // Desktop section with green color theme
        {
            "type": "custom",
            "key": "│{#green}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_green} Desktop "
        },
        {
            "type": "de",
            "key": "│{#green}│ Desktop   │{$4}│{#keys}│{$2}"
        },
        {
            "type": "wm",
            "key": "│{#green}│ Session   │{$4}│{#keys}│{$2}"
        },
        {
            "type": "display",
            "key": "│{#green}│ Display   │{$4}│{#keys}│{$2}",
            "compactType": "original-with-refresh-rate"
        },
        {
             "type": "gpu",
             "key": "│{#green}│ G-Driver  │{$4}│{#keys}│{$2}",
             "format": "{driver}"
        },
        {
            "type": "custom",
            "key": "│{#green}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },


        // Terminal section with yellow color theme
        {
            "type": "custom",
            "key": "│{#yellow}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_yellow} Terminal "
        },
        {
            "type": "shell",
            "key": "│{#yellow}│ Shell     │{$4}│{#keys}│{$2}"
        },
        {
            "type": "terminal",
            "key": "│{#yellow}│ Terminal  │{$4}│{#keys}│{$2}"
        },
        {
            "type": "terminalfont",
            "key": "│{#yellow}│ Term Font │{$4}│{#keys}│{$2}"
        },
        // {
        //     "type": "terminaltheme",
        //     "key": "│{#yellow}│ Colors    │{$4}│{#keys}│{$2}"
        // },
        {
            "type": "packages",
            "key": "│{#yellow}│ Packages  │{$4}│{#keys}│{$2}"
        },
        {
            "type": "custom",
            "key": "│{#yellow}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

        // Development section with red color theme
        // {
        //     "type": "custom",
        //     "key": "│{#red}┌───────────┬{$1}┐{#keys}│\u001b[37D",
        //     "format": "{#bright_red} Development "
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Rust      │{$4}│{#keys}│{$2}",
        //     "text": "rustc --version",
        //     "format": "rustc {~6,13}"                         // Print 6th to 13th characters (version number)
        // },
        // {
        //     "type": "command",
        //     "condition": {
        //         "!system": "Windows"                          // Posix version
        //     },
        //     "key": "│{#red}│ Clang     │{$4}│{#keys}│{$2}",
        //     "text": "clang --version | head -1 | awk '{print $NF}'",
        //     "format": "clang {}"
        // },
        // {
        //     "type": "command",
        //     "condition": {
        //         "system": "Windows"                           // Windows version
        //     },
        //     "key": "│{#red}│ Clang     │{$4}│{#keys}│{$2}",
        //     "text": "clang --version | findstr version",      // Finds the line with "version"
        //     "format": "clang {~-6}"                           // Prints the last 6 characters (version number)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ NodeJS    │{$4}│{#keys}│{$2}",
        //     "text": "node --version",
        //     "format": "node {~1}"                             // {~1} removes first character (v)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Go        │{$4}│{#keys}│{$2}",
        //     "text": "go version | cut -d' ' -f3",
        //     "format": "go {~2}"                               // {~2} removes first 2 characters (go)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Zig       │{$4}│{#keys}│{$2}",
        //     "text": "zig version",
        //     "format": "zig {}"
        // },
        // {
        //     "type": "editor",
        //     "key": "│{#red}│ Editor    │{$4}│{#keys}│{$2}"
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Git       │{$4}│{#keys}│{$2}",
        //     "text": "git version",
        //     "format": "git {~12}"
        // },
        // {
        //     "type": "font",
        //     "key": "│{#red}│ Interface │{$4}│{#keys}│{$2}",
        //     "format": "{font1}"
        // },
        // {
        //     "type": "custom",
        //     "key": "│{#red}└───────────┴{$1}┘{#keys}│",
        //     "format": ""
        // },

        // Uptime section with magenta color theme
        {
            "type": "custom",
            "key": "│{#magenta}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_magenta} Uptime "
        },
        {
            "type": "uptime",
            "key": "│{#magenta}│ Uptime    │{$4}│{#keys}│{$2}"
        },
        //{
        //    "type": "users",
        //    "myselfOnly": true,                               // Only show current user
        //    "key": "│{#magenta}│ Login     │{$4}│{#keys}│{$2}"
        //},
        {
            "condition": {                                    // Conditional module: only show on non-macOS
                "!system": "macOS"
            },
            "type": "disk",
            "key": "│{#magenta}│ OS Age    │{$4}│{#keys}│{$2}",
            "folders": "/",                                   // Check root filesystem
            "format": "{create-time:10} [{days} days]"        // Show creation time and age in days
        },
        {
            "condition": {                                    // Conditional module: only show on macOS
                "system": "macOS"
            },
            "type": "disk",
            "key": "│{#magenta}│ OS Age    │{$4}│{#keys}│{$2}",
            "folders": "/System/Volumes/VM",                 // Work around for APFS on macOS
            "format": "{create-time:10} [{days} days]"
        },
        {
            "type": "custom",
            "key": "│{#magenta}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },
        {
            "type": "custom",
            "key": "│ {$3}            │{$2}",
            "format":"{#37}󰮯 {#37} • {#37}• {#37}• {#31} 󰊠 {#32} 󰊠 {#33} 󰊠 {#34} 󰊠 {#35} 󰊠 {#36} 󰊠"
            // "format":"{#37}󰮯 {#31} 󰧞 {#32} 󰧞 {#33} 󰧞 {#36} 󰊠 {#35} 󰊠 {#34} 󰊠 {#33} 󰊠 {#32} 󰊠 {#31} 󰊠 "
        },
        {
            "type": "custom",
            "key": "└──────────────{$1}┘",                // Bottom border of the entire layout
            "format": ""
        },

        // End with color palette and line break
        // "break",                                             // Add a blank line
        //"colors"                                             // Display color palette

        "break",
    ]
}

Yes, you need to add format to the chassis module, then you can choose between {type}, {vendor}, {version} or {serial} (or all of them). Here is your config with the {vendor}, should be the closest to what you’re looking for :

//
//
//  ░█▀▀░█▀█░█▀▄░█▀▀░█▀█░█░█░█▀█░█░█░█▀▄░░░█▀█░█▀▀
//  ░█▀▀░█░█░█░█░█▀▀░█▀█░▀▄▀░█░█░█░█░█▀▄░░░█░█░▀▀█
//  ░▀▀▀░▀░▀░▀▀░░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░▀░▀░░░▀▀▀░▀▀▀
//  ░░░░░░░█▀▀░█▀█░█▀▀░▀█▀░█▀▀░█▀▀░▀█▀░█▀▀░█░█
//  ░░░░░░░█▀▀░█▀█░▀▀█░░█░░█▀▀░█▀▀░░█░░█░░░█▀█
//  ░░░░░░░▀░░░▀░▀░▀▀▀░░▀░░▀░░░▀▀▀░░▀░░▀▀▀░▀░▀
//
//  Inspired by many and cobbled together by me!
{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "logo": {
        "type": "auto",
        "source": "/home/erik/Pictures/En-OS-Noodly-OG-En-OS-Logo.png",
        "width": 20,          // Width in characters (for image logos)
        "height": 10,         // Height in characters (for image logos)
        "padding": {
            "top": 5,           // Top padding
            "left": 1,          // Left padding
            "right": 1          // Right padding
        }
    },
    "display": {
        "color": {
            "keys": "white"
        },
        "separator": "",
        "constants": [
            "──────────────────────────────────────────────────────",   // {$1} - horizontal line for borders
            "\u001b[55D",                                               // {$2} - move cursor left 55 columns
            "\u001b[55C",                                               // {$3} - move cursor right 55 columns
            "\u001b[54C"                                                // {$4} - move cursor right 54 columns
        ],
        "brightColor": true,
        "bar": {
            "width": 10,       // Width of percentage bars
            "char": {
                "elapsed": "●", // Character for elapsed portion
                // "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"
            }
        }
    },
    "modules": [
        "break",
        {
            "type": "version",
            "key": "┌────────────┬─{$1}┐\u001b[37D",
            "format": "\u001b[1m{#keys} {1} - {2} "
        },
        {
            "type": "os",
            "key": "│  \u001b[s{sysname}\u001b[u\u001b[10C│{$3}│{$2}"
        },
        {
            "type": "kernel",
            "key": "│  \u001b[sKernel\u001b[u\u001b[10C│{$3}│{$2}"
        },
        {
            "type": "datetime",
            "key": "│  Fetched   │{$3}│{$2}",
            "format": "{day-pretty}-{month-pretty}-{year} {hour-pretty}:{minute-pretty}:{second-pretty} {timezone-name}"
        },
        {
            "type": "locale",
            "key": "│  Locale    │{$3}│{$2}"
        },
        {
            "type": "custom",
            "key": "├────────────┴─{$1}┤",                // Bottom border of the entire layout
            "format": ""
        },

        // Hardware section with cyan color theme
        {
            "type": "custom",
            "key": "│{#cyan}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_cyan} Hardware "
        },
        {
            "type": "chassis",
            "key": "│{#cyan}│ Chassis   │{$4}│{#keys}│{$2}",
            "format": "{vendor}"
        },
        {
            "type": "cpu",
            "key": "│{#cyan}│ CPU       │{$4}│{#keys}│{$2}",
            "format": "{name} @{freq-max}",
            "showPeCoreCount": false
        },
        {
            "type": "gpu",
            "key": "│{#cyan}│ GPU       │{$4}│{#keys}│{$2}"
        },
        {
            "type": "memory",
            "key": "│{#cyan}│ RAM       │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            }
        },
        {
            "type": "swap",
            "key": "│{#cyan}│ SWAP      │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            }
        },
        {
            "type": "disk",
            "key": "│{#cyan}│ Disk      │{$4}│{#keys}│{$2}",
            // "keyColor": "34",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            },
        },
        {
            "type": "battery",
            "key": "│{#cyan}│ Battery   │{$4}│{#keys}│{$2}",
            //"key": "│{#blue}│ Battery │{$4}│{#keys}│{$2}",
            "percent": {
            "type": 3, // 3 = show number + bar + percentage
            "red": 20, // Below 20% usage is red
            "blue": 50 // 30-50% is yellow, >50% is green
            // "keyColor": "34",
            },
        },
        {
            "type": "custom",
            "key": "│{#cyan}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

        // Network section with red color theme
        {
            "type": "custom",
            "key": "│{#red}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_red} Network "
        },
        {
            "type": "command",
            "key": "│{#red}│ Ethernet  │{$4}│{#keys}│{$2}",
            "text": "IF=eth0; printf \"%s %s %s\\n\" \"$IF\" \"$(cat /sys/class/net/$IF/operstate)\" \"$(cat /sys/class/net/$IF/speed 2>/dev/null | sed 's/$/Mb\\/s/')\""
        },
        {
            "type": "wifi",
            "key": "│{#red}│ WiFi      │{$4}│{#keys}│{$2}"
        },
        {
            "type": "custom",
            "key": "│{#red}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

                // Desktop section with green color theme
        {
            "type": "custom",
            "key": "│{#green}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_green} Desktop "
        },
        {
            "type": "de",
            "key": "│{#green}│ Desktop   │{$4}│{#keys}│{$2}"
        },
        {
            "type": "wm",
            "key": "│{#green}│ Session   │{$4}│{#keys}│{$2}"
        },
        {
            "type": "display",
            "key": "│{#green}│ Display   │{$4}│{#keys}│{$2}",
            "compactType": "original-with-refresh-rate"
        },
        {
             "type": "gpu",
             "key": "│{#green}│ G-Driver  │{$4}│{#keys}│{$2}",
             "format": "{driver}"
        },
        {
            "type": "custom",
            "key": "│{#green}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },


        // Terminal section with yellow color theme
        {
            "type": "custom",
            "key": "│{#yellow}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_yellow} Terminal "
        },
        {
            "type": "shell",
            "key": "│{#yellow}│ Shell     │{$4}│{#keys}│{$2}"
        },
        {
            "type": "terminal",
            "key": "│{#yellow}│ Terminal  │{$4}│{#keys}│{$2}"
        },
        {
            "type": "terminalfont",
            "key": "│{#yellow}│ Term Font │{$4}│{#keys}│{$2}"
        },
        // {
        //     "type": "terminaltheme",
        //     "key": "│{#yellow}│ Colors    │{$4}│{#keys}│{$2}"
        // },
        {
            "type": "packages",
            "key": "│{#yellow}│ Packages  │{$4}│{#keys}│{$2}"
        },
        {
            "type": "custom",
            "key": "│{#yellow}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },

        // Development section with red color theme
        // {vendor
        //     "type": "custom",
        //     "key": "│{#red}┌───────────┬{$1}┐{#keys}│\u001b[37D",
        //     "format": "{#bright_red} Development "
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Rust      │{$4}│{#keys}│{$2}",
        //     "text": "rustc --version",
        //     "format": "rustc {~6,13}"                         // Print 6th to 13th characters (version number)
        // },
        // {
        //     "type": "command",
        //     "condition": {
        //         "!system": "Windows"                          // Posix version
        //     },
        //     "key": "│{#red}│ Clang     │{$4}│{#keys}│{$2}",
        //     "text": "clang --version | head -1 | awk '{print $NF}'",
        //     "format": "clang {}"
        // },
        // {
        //     "type": "command",
        //     "condition": {
        //         "system": "Windows"                           // Windows version
        //     },
        //     "key": "│{#red}│ Clang     │{$4}│{#keys}│{$2}",
        //     "text": "clang --version | findstr version",      // Finds the line with "version"
        //     "format": "clang {~-6}"                           // Prints the last 6 characters (version number)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ NodeJS    │{$4}│{#keys}│{$2}",
        //     "text": "node --version",
        //     "format": "node {~1}"                             // {~1} removes first character (v)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Go        │{$4}│{#keys}│{$2}",
        //     "text": "go version | cut -d' ' -f3",
        //     "format": "go {~2}"                               // {~2} removes first 2 characters (go)
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Zig       │{$4}│{#keys}│{$2}",
        //     "text": "zig version",
        //     "format": "zig {}"
        // },
        // {
        //     "type": "editor",
        //     "key": "│{#red}│ Editor    │{$4}│{#keys}│{$2}"
        // },
        // {
        //     "type": "command",
        //     "key": "│{#red}│ Git       │{$4}│{#keys}│{$2}",
        //     "text": "git version",
        //     "format": "git {~12}"
        // },
        // {
        //     "type": "font",
        //     "key": "│{#red}│ Interface │{$4}│{#keys}│{$2}",
        //     "format": "{font1}"
        // },
        // {
        //     "type": "custom",
        //     "key": "│{#red}└───────────┴{$1}┘{#keys}│",
        //     "format": ""
        // },

        // Uptime section with magenta color theme
        {
            "type": "custom",
            "key": "│{#magenta}┌───────────┬{$1}┐{#keys}│\u001b[37D",
            "format": "{#bright_magenta} Uptime "
        },
        {
            "type": "uptime",
            "key": "│{#magenta}│ Uptime    │{$4}│{#keys}│{$2}"
        },
        //{
        //    "type": "users",
        //    "myselfOnly": true,                               // Only show current user
        //    "key": "│{#magenta}│ Login     │{$4}│{#keys}│{$2}"
        //},
        {
            "condition": {                                    // Conditional module: only show on non-macOS
                "!system": "macOS"
            },vendor
            "type": "disk",
            "key": "│{#magenta}│ OS Age    │{$4}│{#keys}│{$2}",
            "folders": "/",                                   // Check root filesystem
            "format": "{create-time:10} [{days} days]"        // Show creation time and age in days
        },
        {
            "condition": {                                    // Conditional module: only show on macOS
                "system": "macOS"
            },
            "type": "disk",
            "key": "│{#magenta}│ OS Age    │{$4}│{#keys}│{$2}",
            "folders": "/System/Volumes/VM",                 // Work around for APFS on macOS
            "format": "{create-time:10} [{days} days]"
        },
        {
            "type": "custom",
            "key": "│{#magenta}└───────────┴{$1}┘{#keys}│",
            "format": ""
        },
        {
            "type": "custom",
            "key": "│ {$3}            │{$2}",
            "format":"{#37}󰮯 {#37} • {#37}• {#37}• {#31} 󰊠 {#32} 󰊠 {#33} 󰊠 {#34} 󰊠 {#35} 󰊠 {#36} 󰊠"
            // "format":"{#37}󰮯 {#31} 󰧞 {#32} 󰧞 {#33} 󰧞 {#36} 󰊠 {#35} 󰊠 {#34} 󰊠 {#33} 󰊠 {#32} 󰊠 {#31} 󰊠 "
        },
        {
            "type": "custom",
            "key": "└──────────────{$1}┘",                // Bottom border of the entire layout
            "format": ""
        },

        // End with color palette and line break
        // "break",                                             // Add a blank line
        //"colors"                                             // Display color palette

        "break",
    ]
}

Got it! Simplified it a bit too. Nice!

Great looking Fastfetch there, really cool colours. :victory_hand:

Thanks to this thread and a little help from Google Gemini I setup fastfetch with kitty…

How do you get CPU temperature to display? When I use {temp} or {temperature} it’s ignored (AMD thing?). https://github.com/fastfetch-cli/fastfetch/wiki/Json-Schema-modules#51212-property-json-config--modules--modules-items--anyof--item-1--oneof--cpu

        {
            "type": "cpu",
            "key": "│{#cyan}│ CPU       │{$4}│{#keys}│{$2}",
            "format": "{name} @{freq-max} ",
            "showPeCoreCount": false
        },

Can I copy and paste this code in a file , save and install this file to run on my computer now that all of this wonderful work of coding doesn’t go to waste? Question, where does one place this file so it can be executed in terminal to bring this all up? Another fastfetch filename? Sorry for my questions . . . I’m not the quickest person when it comes to making any code. . .

Rich :wink:

You can put this config inside a .jsoncfile inside ~/.config/fastfetch and use it via the command fastfetch -c ~/.config/fastfetch/yourconfig.jsonc . If you name it config.jsonc it will be set as default and you will only need to use fastfetch

260217_22h26m13s_screenshot
Here is what worked for me :

{
            "type": "cpu",
            "key": " {#36}│{#36} CPU         {#36}│{$4}│{#keys} {$2}",
            "format": "{name} @{freq-max} {temperature}",
            "temp": true,
            "tempSensor":"hwmon0",
            "showPeCoreCount": false
        },

You need to set temp to true and define which sensor you want to use. Here i set hwmon0 but you can also use thermal_zone depending on your system (but don’t ask me which one is correct or better, it’s been so long since i set that i don’t remember).

You can also set different colors depending on the temperature in the same manner as for other bars/percentages.

{
            "type": "cpu",
            "key": " {#36}│{#36} CPU         {#36}│{$4}│{#keys} {$2}",
            "format": "{name} @{freq-max} {temperature}",
            "temp": {
                "green": 40,
                "yellow": 70
            },
            "tempSensor":"hwmon3",
            "showPeCoreCount": false
        },

EDIT : hwmon3 seems to provide more correct values for me, need further research for that.

Thank you! hwmon2 is what worked for me.

    {
        "type": "cpu",
        "key": "│{#cyan}│ CPU       │{$4}│{#keys}│{$2}",
        "format": "{name} @{freq-max} {temperature}",
        "temp": {
            "green": 40,
            "yellow": 70
        },
        "tempSensor":"hwmon2",
        "showPeCoreCount": false
    },

Thanks @perletero and @MrSmartepants, hwmon2 works for me as well :slightly_smiling_face:

In my case, I found that I don’t actually need to specify tempSensor. Setting "temp": true is enough for both the CPU and GPU.

        {
            "type": "cpu",
            "key": " {#34}│ CPU         │{$4}│{#keys} {$2}",
            "format": "{name} @{freq-max} {temperature}",
            "temp": true
            // "tempSensor":"hwmon2",
            // "showPeCoreCount": false
        },
        {
            "type": "gpu",
            "key": " {#34}│ GPU         │{$4}│{#keys} {$2}",
            "temp": true
            // "format": "{name} {temperature}",
            // "tempSensor":"amdgpu"
        },

For anyone wondering how to determine the correct temp sensor, I used the following command:

for i in /sys/class/hwmon/hwmon*; do
  echo "$i: $(cat $i/name)"
done

--- output
/sys/class/hwmon/hwmon0: acpitz
/sys/class/hwmon/hwmon1: nvme
/sys/class/hwmon/hwmon10: hidpp_battery_1
/sys/class/hwmon/hwmon2: k10temp
/sys/class/hwmon/hwmon3: spd5118
/sys/class/hwmon/hwmon4: spd5118
/sys/class/hwmon/hwmon5: r8169_0_200:00
/sys/class/hwmon/hwmon6: r8169_0_300:00
/sys/class/hwmon/hwmon7: mt7921_phy0
/sys/class/hwmon/hwmon8: amdgpu
/sys/class/hwmon/hwmon9: hidpp_battery_0

On my system:

  • k10temp (hwmon2) is for the CPU
  • amdgpu (hwmon8) is for the iGPU

Here’s the result

Thanks for your response. . . .much appreciated. . . .

Rich :wink:

This has always worked great for me and seems pretty accurate. When my fan comes on, one or both of the green temp values, will change to yellow. I haven’t found a need to specify a hwmon, unlike my conky configs that were a bear to figure out sometimes.

Selection_003

Selection_004

 {
            "type": "cpu",
            "key": "│{#blue}│  CPU     │{$4}│{#keys}│{$2}",
            "showPeCoreCount": true,
            "temp": true,
            "keyColor": "blue"
        },
        {
            "type": "gpu",
            "key": "│{#blue}│  GPU     │{$4}│{#keys}│{$2}",
            "driverSpecific": true,
            "temp": true
        },

Just an image change.

Get it here, if you’d like:

Currently, my disks look like this…

h

Code used:

        {
            "type": "disk",
            "key": "├  DISK",
            "keyColor": "green"
        },
        {

How do I get the bars so it looks similar to this…

Under display section

    "display": {
        ...
        "bar": {
            "width": 10, // Width of percentage bars
            "char": {
                "elapsed": "■", // Character for elapsed portion (change to your fav char)
                "total": "□" // Character for total portion (change to your fav char)
            },
            "border": { // if you want to customize the border
                "left": "[",
                "right": "]"
            }
        },
        ...
    },

Under modules, add this. Type 3 will display the bar. Same thing applies for RAM and SWAP

        {
            "type": "disk",
            "key": " {#34}│ Disk        │{$4}│{#keys} {$2}",
            "percent": {
                "type": 3, // 3 = show number + bar + percentage
                "green": 30, // <30% is green
                "yellow": 70 // 30-70% is yellow, >70% is red
            }
        },