Skip to content

[BUG] --colors-block-width, --colors-block-range-start, --colors-block-range-end all disabled #1948

@pmlandwehr

Description

@pmlandwehr

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

I invoke fastfetch in a greeting script as follows:
fastfetch --pipe --logo none --colors-block-width 0 --colors-block-range-start 0 --colors-block-range-end 0 --disk-show-regular false | string match -r '.+' | cowsay -f small -e "^^" | lolcat --seed 50 --freq 0.05

The key bit is:
fastfetch --pipe --logo none --colors-block-width 0 --colors-block-range-start 0 --colors-block-range-end 0 --disk-show-regular false

Prior to updating this worked fine. Now, it throws the following errors:
Error: unknown option: --colors-block-width,
Error: unknown option: --colors-block-range-start,
Error: unknown option: --colors-block-range-end

Removing the offending flags causes the script to run but restores the color palette block, which makes the greeting render ugly.

Using fastfetch --gen-config and then removing the colors line fixes the problem in the greeting, but causes all invocations of fastfetch to not have the color palette, which is also not right.

Version used

fastfetch 2.51.0 (x86_64)

Bug prevalence

Always

Regression

Yes

Installation

Package manager

Package manager

apt, but also occurs when tested with a version installed with brew on my mac.

Screenshots

No response

Configuration

System information

[
  {
    "type": "Title",
    "result": {
      "userName": "pmlandwehr",
      "fullUserName": "pmlandwehr,
      "hostName": "castafiore",
      "homeDir": "/home/pmlandwehr/",
      "exePath": "/usr/bin/fastfetch",
      "userShell": "/usr/bin/fish"
    },
    "stat": 0.010836005210876465
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0.0007709860801696777
  },
  {
    "type": "OS",
    "result": {
      "buildID": "",
      "codename": "noble",
      "id": "ubuntu",
      "idLike": "debian",
      "name": "Ubuntu",
      "prettyName": "Ubuntu 24.04.3 LTS",
      "variant": "",
      "variantID": "",
      "version": "24.04.3 LTS (Noble Numbat)",
      "versionID": "24.04"
    },
    "stat": 0.04003798961639404
  },
  {
    "type": "Host",
    "result": {
      "family": "",
      "name": "Precision T3600",
      "version": "01",
      "sku": "",
      "vendor": "Dell Inc.",
      "serial": "",
      "uuid": ""
    },
    "stat": 0.16267597675323486
  },
  {
    "type": "BIOS",
    "result": {
      "date": "06/21/2018",
      "release": "4.6",
      "vendor": "Dell Inc.",
      "version": "A17",
      "type": "BIOS"
    },
    "stat": 0.07205802202224731
  },
  {
    "type": "Bootmgr",
    "error": "Failed to read efivar: BootCurrent",
    "stat": 0.005479991436004639
  },
  {
    "type": "Board",
    "result": {
      "name": "08HPGT",
      "vendor": "Dell Inc.",
      "version": "A01",
      "serial": ""
    },
    "stat": 0.058637022972106934
  },
  {
    "type": "Chassis",
    "result": {
      "type": "Tower",
      "vendor": "Dell Inc.",
      "version": "",
      "serial": ""
    },
    "stat": 0.08814501762390137
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "6.14.0-29-generic",
      "version": "#29~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Aug 14 16:52:50 UTC 2",
      "displayVersion": "",
      "pageSize": 4096
    },
    "stat": 0.0020470023155212402
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "systemd",
      "exe": "/usr/lib/systemd/systemd",
      "version": "255.4-1ubuntu8.10",
      "pid": 1
    },
    "stat": 6.972285032272339
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 424595830,
      "bootTime": "2025-08-28T14:28:15.659-0700"
    },
    "stat": 0.06523895263671875
  },
  {
    "type": "Loadavg",
    "result": [
      0.01,
      0.02,
      0.0
    ],
    "stat": 0.018975019454956055
  },
  {
    "type": "Processes",
    "result": 344,
    "stat": 0.5188080072402954
  },
  {
    "type": "Packages",
    "result": {
      "all": 1852,
      "amSystem": 0,
      "amUser": 0,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 1843,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 0,
      "flatpakUser": 0,
      "guixSystem": 0,
      "guixUser": 0,
      "guixHome": 0,
      "hpkgSystem": 0,
      "hpkgUser": 0,
      "linglong": 0,
      "mport": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "opkg": 0,
      "pacman": 0,
      "pacstall": 0,
      "paludis": 0,
      "pisi": 0,
      "pkg": 0,
      "pkgtool": 0,
      "pkgsrc": 0,
      "macports": 0,
      "rpm": 0,
      "scoopUser": 0,
      "scoopGlobal": 0,
      "snap": 9,
      "soar": 0,
      "sorcery": 0,
      "winget": 0,
      "xbps": 0,
      "pacmanBranch": ""
    },
    "stat": 0.8176149725914001
  },
  {
    "type": "Shell",
    "result": {
      "exe": "fish",
      "exeName": "fish",
      "exePath": "/usr/bin/fish",
      "pid": 132706,
      "ppid": 132705,
      "processName": "fish",
      "prettyName": "fish",
      "version": "3.7.0",
      "tty": 1
    },
    "stat": 2.9410970211029053
  },
  {
    "type": "Editor",
    "result": {
      "type": "Visual",
      "name": "/usr/bin/vim",
      "path": "/usr/bin/vim.basic",
      "exe": "vim.basic",
      "version": "9.1"
    },
    "stat": 6.65948098897934
  },
  {
    "type": "Display",
    "error": "Couldn't detect display",
    "stat": 3.1948519945144653
  },
  {
    "type": "Brightness",
    "result": [],
    "stat": 0.020110011100769043
  },
  {
    "type": "Monitor",
    "error": "Monitor module is an alias of Display module",
    "stat": 0.001105964183807373
  },
  {
    "type": "LM",
    "result": {
      "service": "sshd",
      "type": "TTY",
      "version": "9.6p1 Ubuntu-3ubuntu13.13"
    },
    "stat": 4.195098042488098
  },
  {
    "type": "DE",
    "error": "No DE found",
    "stat": 0.0014590024948120117
  },
  {
    "type": "WM",
    "error": "No WM found",
    "stat": 0.0016899704933166504
  },
  {
    "type": "WMTheme",
    "error": "WM Theme needs successful WM detection",
    "stat": 0.0014600157737731934
  },
  {
    "type": "Theme",
    "error": "Theme isn't supported in TTY",
    "stat": 0.0016080141067504883
  },
  {
    "type": "Icons",
    "error": "Icons aren't supported in TTY",
    "stat": 0.0014339685440063477
  },
  {
    "type": "Font",
    "error": "Font isn't supported in TTY",
    "stat": 0.0011100172996520996
  },
  {
    "type": "Cursor",
    "error": "Cursor isn't supported in TTY",
    "stat": 0.002299010753631592
  },
  {
    "type": "Wallpaper",
    "error": "Failed to detect the current wallpaper path",
    "stat": 4.9676730036735535
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "sshd",
      "exe": "sshd: pmlandwehr@pts/1",
      "exeName": "1",
      "exePath": "",
      "pid": 132705,
      "ppid": 132657,
      "prettyName": "/dev/pts/1",
      "version": "",
      "tty": "/dev/pts/1"
    },
    "stat": 0.09705102443695068
  },
  {
    "type": "TerminalFont",
    "error": "Unknown terminal: sshd",
    "stat": 0.0054340362548828125
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 122,
      "rows": 35,
      "width": 2196,
      "height": 1330
    },
    "stat": 0.004522979259490967
  },
  {
    "type": "TerminalTheme",
    "result": {
      "fg": {
        "r": 134,
        "g": 148,
        "b": 150,
        "dark": false
      },
      "bg": {
        "r": 13,
        "g": 42,
        "b": 52,
        "dark": true
      }
    },
    "stat": 14.797260999679565
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "Intel(R) Xeon(R) E5-2670 0",
      "vendor": "GenuineIntel",
      "packages": 1,
      "cores": {
        "physical": 8,
        "logical": 16,
        "online": 16
      },
      "frequency": {
        "base": 1200,
        "max": 3300
      },
      "coreTypes": [
        {
          "count": 16,
          "freq": 3300
        }
      ],
      "temperature": 44.0,
      "march": "x86_64-v2"
    },
    "stat": 1.2299529910087585
  },
  {
    "type": "CPUCache",
    "result": {
      "l1": [
        {
          "size": 32768,
          "num": 8,
          "lineSize": 64,
          "type": "data"
        },
        {
          "size": 32768,
          "num": 8,
          "lineSize": 64,
          "type": "instruction"
        }
      ],
      "l2": [
        {
          "size": 262144,
          "num": 8,
          "lineSize": 64,
          "type": "unified"
        }
      ],
      "l3": [
        {
          "size": 20971520,
          "num": 1,
          "lineSize": 64,
          "type": "unified"
        }
      ]
    },
    "stat": 5.208757042884827
  },
  {
    "type": "CPUUsage",
    "result": [
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      5.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0,
      0.0
    ],
    "stat": 200.3627319931984
  },
  {
    "type": "GPU",
    "result": [
      {
        "index": 0,
        "coreCount": 3584,
        "coreUsage": 0.0,
        "memory": {
          "dedicated": {
            "total": 11713773568,
            "used": 7340032
          },
          "shared": {
            "total": null,
            "used": null
          },
          "type": null
        },
        "driver": "nvidia (proprietary) 535.247.01",
        "name": "NVIDIA GeForce GTX 1080 Ti",
        "temperature": 27.0,
        "type": "Discrete",
        "vendor": "NVIDIA",
        "platformApi": "DRM (card1)",
        "frequency": 1911,
        "deviceId": 3000
      }
    ],
    "stat": 33.95840299129486
  },
  {
    "type": "Memory",
    "result": {
      "total": 67381293056,
      "used": 1619091456
    },
    "stat": 0.05623501539230347
  },
  {
    "type": "PhysicalMemory",
    "error": "Failed to get SMBIOS data",
    "stat": 0.020959973335266113
  },
  {
    "type": "Swap",
    "result": [
      {
        "name": "/swap.img",
        "used": 0,
        "total": 8589930496
      }
    ],
    "stat": 0.037607014179229736
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 383954616320,
          "free": 407976390656,
          "total": 471413596160,
          "used": 63437205504
        },
        "files": {
          "total": 29310976,
          "used": 924948
        },
        "filesystem": "ext4",
        "mountpoint": "/",
        "mountFrom": "/dev/sda2",
        "name": "",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2024-06-28T08:23:57.000-0700"
      },
      {
        "bytes": {
          "available": 0,
          "free": 0,
          "total": 0,
          "used": 0
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "ext2",
        "mountpoint": "/media/andriy/ef81d52c-2b40-44eb-8dd5-81c3e8f72857",
        "mountFrom": "/dev/sdc3",
        "name": "",
        "volumeType": [
          "Regular",
          "Unknown"
        ],
        "createTime": null
      },
      {
        "bytes": {
          "available": 383954616320,
          "free": 407976390656,
          "total": 471413596160,
          "used": 63437205504
        },
        "files": {
          "total": 29310976,
          "used": 924948
        },
        "filesystem": "ext4",
        "mountpoint": "/var/snap/firefox/common/host-hunspell",
        "mountFrom": "/dev/sda2",
        "name": "",
        "volumeType": [
          "Subvolume",
          "Read-only"
        ],
        "createTime": "2024-06-28T08:24:42.091-0700"
      }
    ],
    "stat": 1.4160789847373962
  },
  {
    "type": "Btrfs",
    "error": "opendir(\"/sys/fs/btrfs\") == NULL",
    "stat": 0.017207980155944824
  },
  {
    "type": "Zpool",
    "error": "dlopen libzfs.so failed",
    "stat": 0.7343609929084778
  },
  {
    "type": "Battery",
    "result": [],
    "stat": 0.03216099739074707
  },
  {
    "type": "PowerAdapter",
    "result": [],
    "stat": 0.0196569561958313
  },
  {
    "type": "Player",
    "error": "Player module is an alias of Media module",
    "stat": 0.001132965087890625
  },
  {
    "type": "Media",
    "error": "No media found",
    "stat": 7.120743036270142
  },
  {
    "type": "PublicIp",
    "result": {
      "ip": "secret",
      "location": "San Francisco, US"
    },
    "stat": 0.15832501649856567
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "name": "enp0s25",
        "defaultRoute": {
          "ipv4": true,
          "ipv6": false
        },
        "ipv4": "10.130.10.185/24",
        "ipv6": "",
        "mac": "b8:ca:3a:90:86:a5",
        "mtu": 1500,
        "speed": 1000,
        "flags": "UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP"
      }
    ],
    "stat": 0.40573298931121826
  },
  {
    "type": "DNS",
    "result": [
      "10.130.10.5",
      "8.8.8.8"
    ],
    "stat": 0.07391798496246338
  },
  {
    "type": "Wifi",
    "result": [
      {
        "inf": {
          "description": "wlp8s0",
          "status": "up"
        },
        "conn": {
          "status": "disconnected",
          "ssid": "",
          "bssid": "",
          "protocol": "",
          "security": "",
          "signalQuality": null,
          "rxRate": null,
          "txRate": null,
          "channel": 0,
          "frequency": 0
        }
      }
    ],
    "stat": 0.27480602264404297
  },
  {
    "type": "DateTime",
    "result": "2025-09-02T12:24:51.778-0700",
    "stat": 0.02080702781677246
  },
  {
    "type": "Locale",
    "result": "en_US.UTF-8",
    "stat": 0.0036950111389160156
  },
  {
    "type": "Vulkan",
    "result": {
      "apiVersion": "",
      "conformanceVersion": "",
      "driver": "",
      "gpus": []
    },
    "stat": 144.4372650384903
  },
  {
    "type": "OpenGL",
    "result": {
      "version": "4.5 (Compatibility Profile) Mesa 25.0.7-0ubuntu0.24.04.1",
      "renderer": "llvmpipe (LLVM 19.1.1, 256 bits)",
      "vendor": "Mesa",
      "slv": "4.50",
      "library": "EGL 1.5"
    },
    "stat": 126.18394702672958
  },
  {
    "type": "OpenCL",
    "result": {
      "version": "3.0 CUDA 12.2.149",
      "name": "NVIDIA CUDA",
      "vendor": "NVIDIA Corporation",
      "gpus": [
        {
          "type": "Discrete",
          "vendor": "NVIDIA",
          "name": "NVIDIA GeForce GTX 1080 Ti",
          "driver": "535.247.01",
          "platformApi": "OpenCL 3.0 CUDA",
          "coreCount": 28,
          "frequency": 1582,
          "memory": {
            "dedicated": {
              "total": 11713773568,
              "used": null
            },
            "shared": {
              "total": null,
              "used": null
            }
          },
          "deviceId": 98171506943616
        }
      ]
    },
    "stat": 63.45066100358963
  },
  {
    "type": "Users",
    "result": [
      {
        "name": "pmlandwehr",
        "hostName": "10.130.10.166",
        "sessionName": "pts/0",
        "clientIp": "10.130.10.166",
        "loginTime": "2025-09-02T12:17:26.351-0700"
      }
    ],
    "stat": 0.1461469531059265
  },
  {
    "type": "Bluetooth",
    "result": [],
    "stat": 0.015230953693389893
  },
  {
    "type": "BluetoothRadio",
    "error": "Failed to open /sys/class/bluetooth",
    "stat": 0.00682598352432251
  },
  {
    "type": "Sound",
    "result": [
      {
        "active": false,
        "main": true,
        "volume": 100,
        "name": "Dummy Output",
        "identifier": "auto_null",
        "platformApi": "PipeWire 1.0.5"
      }
    ],
    "stat": 10.751677989959717
  },
  {
    "type": "Camera",
    "result": [],
    "stat": 0.01701200008392334
  },
  {
    "type": "Gamepad",
    "result": [],
    "stat": 0.05899101495742798
  },
  {
    "type": "Mouse",
    "result": [
      {
        "serial": "",
        "name": "PS/2 Generic Mouse"
      }
    ],
    "stat": 0.11852902173995972
  },
  {
    "type": "Keyboard",
    "result": [
      {
        "serial": "",
        "name": "AT Translated Set 2 keyboard"
      }
    ],
    "stat": 0.11859798431396484
  },
  {
    "type": "Weather",
    "error": "Empty server response received",
    "stat": 1060.151784002781
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "enp0s25",
        "defaultRoute": true,
        "txBytes": 8515,
        "rxBytes": 16027,
        "txPackets": 82,
        "rxPackets": 162,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 0.4420139789581299
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "SABRENT",
        "devPath": "/dev/sdb",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "PLDS DVD+-RW DS-8A9SH",
        "devPath": "/dev/sr0",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "SABRENT",
        "devPath": "/dev/sdc",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "ATA ADATA SU630",
        "devPath": "/dev/sda",
        "bytesRead": 34086912,
        "bytesWritten": 0,
        "readCount": 353,
        "writeCount": 0
      }
    ],
    "stat": 0.7416599988937378
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "SABRENT",
        "devPath": "/dev/sdb",
        "interconnect": "USB",
        "kind": "HDD",
        "size": 2048408248320,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "0204",
        "temperature": null
      },
      {
        "name": "PLDS DVD+-RW DS-8A9SH",
        "devPath": "/dev/sr0",
        "interconnect": "ATA",
        "kind": "SSD",
        "size": 1073741312,
        "serial": "",
        "removable": true,
        "readOnly": false,
        "revision": "ED11",
        "temperature": null
      },
      {
        "name": "SABRENT",
        "devPath": "/dev/sdc",
        "interconnect": "USB",
        "kind": "HDD",
        "size": 2048408248320,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "0204",
        "temperature": null
      },
      {
        "name": "ATA ADATA SU630",
        "devPath": "/dev/sda",
        "interconnect": "ATA",
        "kind": "SSD",
        "size": 480103981056,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "0A0",
        "temperature": null
      }
    ],
    "stat": 1.4738600254058838
  },
  {
    "type": "TPM",
    "error": "TPM device is not found",
    "stat": 0.016588032245635986
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "sysName": "Linux",
      "architecture": "x86_64",
      "version": "2.51.0",
      "versionGit": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Aug 29 2025, 00:55:03",
      "compiler": "gcc 11.4.0",
      "debugMode": false,
      "libc": "glibc 2.35"
    },
    "stat": 0.0031859874725341797
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0.0012219548225402832
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0.0012980103492736816
  }
]

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick6
zlib
xfconf
sqlite3
rpm
egl
glx
opencl
libpulse
libddcutil
libzfs
Directx Headers
linux/videodev2
linux/wireless

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions