fastfetch icon indicating copy to clipboard operation
fastfetch copied to clipboard

[BUG] Display: custom format not applied when compactType is set

Open sjclayton opened this issue 5 months ago • 4 comments

Read the FAQ first

  • [x] I have checked the FAQ but the issue is not covered

Description

What I'm trying to do:

I am trying to use my custom format string for the display module, but want the displays on a single line (config below):

    {
      "type": "display",
      "key": "Display",
      "compactType": "original",
      "format": "{width}x{height} @ {refresh-rate} Hz ({inch}-inch) {?is-primary}*{?}",
    },

However, this doesn't work, and the format string is ignored and overridden by an internal default.

Expected Behaviour:

Any custom format string (if supplied) should still be considered when outputting multiple displays on a single line.

Should output -> Display: 1920x1080 @ 60Hz (24-inch) *, 1920x1080 @ 60Hz (24-inch)

Actual output -> Display: 1920x1080 1920x1080

Version used

fastfetch 2.48.1 (x86_64)

Bug prevalence

Always

Regression

Not sure

Installation

Package manager

Package manager

pacman

Screenshots

No response

System information

[
  {
    "type": "Title",
    "result": {
    },
    "stat": 0.009707927703857422
  },
  {
    "type": "Separator",
    "error": "Unsupported for JSON format",
    "stat": 0.00039005279541015625
  },
  {
    "type": "OS",
    "result": {
      "buildID": "2022.06.23",
      "codename": "rolling",
      "id": "cachyos",
      "idLike": "arch",
      "name": "CachyOS Linux",
      "prettyName": "CachyOS",
      "variant": "",
      "variantID": "",
      "version": "rolling",
      "versionID": ""
    },
    "stat": 0.041818976402282715
  },
  {
    "type": "Host",
    "result": {
      "family": "IdeaCentre AIO 3 24ARE05",
      "name": "F0EW005SUS",
      "version": "IdeaCentre AIO 3 24ARE05",
      "sku": "LENOVO_MT_F0EW_BU_Lenovo_FM_IdeaCentre AIO 3 24ARE05",
      "vendor": "LENOVO",
      "serial": "",
      "uuid": ""
    },
    "stat": 0.1470789909362793
  },
  {
    "type": "BIOS",
    "result": {
      "date": "12/21/2020",
      "release": "1.25",
      "vendor": "LENOVO",
      "version": "O4SKT25A",
      "type": "UEFI"
    },
    "stat": 0.02269303798675537
  },
  {
    "type": "Bootmgr",
    "result": {
      "name": "cachyos",
      "firmware": "\\EFI\\CACHYOS\\GRUBX64.EFI",
      "order": 1,
      "secureBoot": false
    },
    "stat": 0.1596130132675171
  },
  {
    "type": "Board",
    "result": {
      "name": "371C",
      "vendor": "LENOVO",
      "version": "WIN SDK0J40709 3259722603807",
      "serial": ""
    },
    "stat": 0.02560901641845703
  },
  {
    "type": "Chassis",
    "result": {
      "type": "All in One",
      "vendor": "LENOVO",
      "version": "",
      "serial": ""
    },
    "stat": 0.02871394157409668
  },
  {
    "type": "Kernel",
    "result": {
      "architecture": "x86_64",
      "name": "Linux",
      "release": "6.15.6-2-cachyos",
      "version": "#1 SMP PREEMPT_DYNAMIC Fri, 11 Jul 2025 06:37:59 +0000",
      "displayVersion": "",
      "pageSize": 4096
    },
    "stat": 0.0011919736862182617
  },
  {
    "type": "InitSystem",
    "result": {
      "name": "systemd",
      "exe": "/usr/lib/systemd/systemd",
      "version": "257.7-1-arch",
      "pid": 1
    },
    "stat": 0.22430503368377686
  },
  {
    "type": "Uptime",
    "result": {
      "uptime": 547437420,
      "bootTime": "2025-07-15T04:23:09.744-0400"
    },
    "stat": 0.03456604480743408
  },
  {
    "type": "Loadavg",
    "result": [
      1.07,
      0.83,
      0.82
    ],
    "stat": 0.009849071502685547
  },
  {
    "type": "Processes",
    "result": 355,
    "stat": 0.7738670110702515
  },
  {
    "type": "Packages",
    "result": {
      "all": 1684,
      "amSystem": 0,
      "amUser": 0,
      "apk": 0,
      "brew": 0,
      "brewCask": 0,
      "choco": 0,
      "dpkg": 0,
      "emerge": 0,
      "eopkg": 0,
      "flatpakSystem": 25,
      "flatpakUser": 18,
      "guixSystem": 0,
      "guixUser": 0,
      "guixHome": 0,
      "hpkgSystem": 0,
      "hpkgUser": 0,
      "linglong": 0,
      "mport": 0,
      "nixDefault": 0,
      "nixSystem": 0,
      "nixUser": 0,
      "opkg": 0,
      "pacman": 1641,
      "pacstall": 0,
      "paludis": 0,
      "pisi": 0,
      "pkg": 0,
      "pkgtool": 0,
      "pkgsrc": 0,
      "qi": 0,
      "macports": 0,
      "rpm": 0,
      "scoop": 0,
      "snap": 0,
      "soar": 0,
      "sorcery": 0,
      "winget": 0,
      "xbps": 0,
      "pacmanBranch": ""
    },
    "stat": 0.5801900625228882
  },
  {
    "type": "Shell",
    "result": {
      "exe": "zsh",
      "exeName": "zsh",
      "exePath": "/usr/bin/zsh",
      "pid": 2991928,
      "ppid": 1693,
      "processName": "zsh",
      "prettyName": "zsh",
      "version": "5.9",
      "tty": 6
    },
    "stat": 0.0909719467163086
  },
  {
    "type": "Editor",
    "result": {
      "type": "Visual",
      "name": "/home/shaun/.local/share/bob/nvim-bin/nvim",
      "path": "/home/shaun/.local/share/bob/nvim-bin/nvim",
      "exe": "nvim",
      "version": "0.11.2"
    },
    "stat": 10.778704047203064
  },
  {
    "type": "Display",
    "result": [
      {
        "id": 0,
        "name": "LEN-A350-B-A",
        "primary": true,
        "output": {
          "width": 1920,
          "height": 1080,
          "refreshRate": 60.0
        },
        "scaled": {
          "width": 1920,
          "height": 1080
        },
        "preferred": {
          "width": 1920,
          "height": 1080,
          "refreshRate": 60.0
        },
        "physical": {
          "width": 527,
          "height": 296
        },
        "rotation": 0,
        "bitDepth": 0,
        "hdrStatus": "Unsupported",
        "type": "Unknown",
        "manufactureDate": {
          "year": 2019,
          "week": 39
        },
        "serial": 1,
        "platformApi": "xcb-randr-crtc"
      },
      {
        "id": 0,
        "name": "ASUS MX239",
        "primary": false,
        "output": {
          "width": 1920,
          "height": 1080,
          "refreshRate": 60.0
        },
        "scaled": {
          "width": 1920,
          "height": 1080
        },
        "preferred": {
          "width": 1920,
          "height": 1080,
          "refreshRate": 60.0
        },
        "physical": {
          "width": 528,
          "height": 310
        },
        "rotation": 0,
        "bitDepth": 0,
        "hdrStatus": "Unsupported",
        "type": "External",
        "manufactureDate": {
          "year": 2015,
          "week": 12
        },
        "serial": 21255,
        "platformApi": "xcb-randr-crtc"
      }
    ],
    "stat": 2.413377046585083
  },
  {
    "type": "Brightness",
    "result": [
      {
        "name": "LEN-A350-B-A",
        "max": 62451.0,
        "min": 0.0,
        "current": 34348.0,
        "builtin": true
      },
      {
        "name": "ASUS MX239",
        "max": 100.0,
        "min": 0.0,
        "current": 90.0,
        "builtin": false
      }
    ],
    "stat": 2977.4710149765015
  },
  {
    "type": "Monitor",
    "error": "Monitor module is an alias of Display module",
    "stat": 0.003055095672607422
  },
  {
    "type": "LM",
    "result": {
      "service": "sddm",
      "type": "X11",
      "version": "0.21.0"
    },
    "stat": 0.13801097869873047
  },
  {
    "type": "DE",
    "result": {
      "processName": "plasmashell",
      "prettyName": "KDE Plasma",
      "version": "6.4.3"
    },
    "stat": 0.009659051895141602
  },
  {
    "type": "WM",
    "result": {
      "processName": "KWin",
      "prettyName": "KWin",
      "protocolName": "X11",
      "pluginName": "",
      "version": ""
    },
    "stat": 0.001092076301574707
  },
  {
    "type": "WMTheme",
    "result": "Klassy",
    "stat": 0.012272953987121582
  },
  {
    "type": "Theme",
    "result": {
      "theme1": "Klassy (CatppuccinMocha) [Qt]",
      "theme2": "catppuccin-mocha-lavender-standard+default [GTK2/3/4]"
    },
    "stat": 0.06583499908447266
  },
  {
    "type": "Icons",
    "result": {
      "icons1": "Amy-Dark-Icons [Qt]",
      "icons2": "Amy-Dark-Icons [GTK2/3/4]"
    },
    "stat": 0.0009919404983520508
  },
  {
    "type": "Font",
    "result": {
      "display": "SF Pro Display (10pt) [Qt], SF Pro Display (10pt) [GTK2/3/4]",
      "fonts": [
        "SF Pro Display (10pt)",
        "SF Pro Display (10pt)",
        "SF Pro Display (10pt)",
        "SF Pro Display (10pt)"
      ]
    },
    "stat": 0.007413983345031738
  },
  {
    "type": "Cursor",
    "result": {
      "theme": "capitaine-cursors",
      "size": "36"
    },
    "stat": 0.0056610107421875
  },
  {
    "type": "Wallpaper",
    "stat": 0.0009310245513916016
  },
  {
    "type": "Terminal",
    "result": {
      "processName": "tmux: server",
      "exe": "/usr/bin/tmux",
      "exeName": "tmux",
      "exePath": "/usr/bin/tmux",
      "pid": 1693,
      "ppid": 1660,
      "prettyName": "tmux",
      "version": "3.5a",
      "tty": ""
    },
    "stat": 0.0326310396194458
  },
  {
    "type": "TerminalFont",
    "error": "Unknown terminal: tmux: server",
    "stat": 0.0018930435180664062
  },
  {
    "type": "TerminalSize",
    "result": {
      "columns": 192,
      "rows": 48,
      "width": 1920,
      "height": 1056
    },
    "stat": 0.0067729949951171875
  },
  {
    "type": "TerminalTheme",
    "result": {
      "fg": {
        "r": 205,
        "g": 214,
        "b": 244,
        "dark": false
      },
      "bg": {
        "r": 30,
        "g": 30,
        "b": 46,
        "dark": true
      }
    },
    "stat": 0.38534092903137207
  },
  {
    "type": "CPU",
    "result": {
      "cpu": "AMD Ryzen 5 4500U",
      "vendor": "AuthenticAMD",
      "packages": 1,
      "cores": {
        "physical": 6,
        "logical": 6,
        "online": 6
      },
      "frequency": {
        "base": 1401,
        "max": 2375
      },
      "coreTypes": [
        {
          "count": 6,
          "freq": 2375
        }
      ],
      "temperature": 40.25
    },
    "stat": 0.21193206310272217
  },
  {
    "type": "CPUCache",
    "result": {
      "l1": [
        {
          "size": 32768,
          "num": 6,
          "lineSize": 64,
          "type": "data"
        },
        {
          "size": 32768,
          "num": 6,
          "lineSize": 64,
          "type": "instruction"
        }
      ],
      "l2": [
        {
          "size": 524288,
          "num": 6,
          "lineSize": 64,
          "type": "unified"
        }
      ],
      "l3": [
        {
          "size": 4194304,
          "num": 2,
          "lineSize": 64,
          "type": "unified"
        }
      ]
    },
    "stat": 0.5501940250396729
  },
  {
    "type": "CPUUsage",
    "result": [
      14.285714285714285,
      10.0,
      5.263157894736842,
      15.0,
      14.285714285714285,
      10.526315789473683
    ],
    "stat": 200.15076398849487
  },
  {
    "type": "GPU",
    "result": [
      {
        "index": null,
        "coreCount": 6,
        "coreUsage": 0.0,
        "memory": {
          "dedicated": {
            "total": 493031424,
            "used": 479526912
          },
          "shared": {
            "total": 8061255680,
            "used": 1456713728
          },
          "type": "DDR4"
        },
        "driver": "amdgpu",
        "name": "AMD Radeon Graphics",
        "temperature": 40.0,
        "type": "Integrated",
        "vendor": "AMD",
        "platformApi": "DRM (card0)",
        "frequency": 1500,
        "deviceId": 4000
      }
    ],
    "stat": 2.557200074195862
  },
  {
    "type": "Memory",
    "result": {
      "total": 16147877888,
      "used": 10982293504
    },
    "stat": 0.016240954399108887
  },
  {
    "type": "PhysicalMemory",
    "error": "Failed to get SMBIOS data",
    "stat": 0.0080949068069458
  },
  {
    "type": "Swap",
    "result": [
      {
        "name": "/dev/zram0",
        "used": 2964410368,
        "total": 16147017728
      }
    ],
    "stat": 0.010368943214416504
  },
  {
    "type": "Disk",
    "result": [
      {
        "bytes": {
          "available": 187729215488,
          "free": 192507273216,
          "total": 511789260800,
          "used": 319281987584
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/",
        "mountFrom": "/dev/nvme0n1p2",
        "name": "root",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2022-08-13T00:46:13.340-0400"
      },
      {
        "bytes": {
          "available": 312393728,
          "free": 312393728,
          "total": 313942016,
          "used": 1548288
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "vfat",
        "mountpoint": "/boot/efi",
        "mountFrom": "/dev/nvme0n1p1",
        "name": "NO_LABEL",
        "volumeType": [
          "Regular"
        ],
        "createTime": null
      },
      {
        "bytes": {
          "available": 187729215488,
          "free": 192507273216,
          "total": 511789260800,
          "used": 319281987584
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/home",
        "mountFrom": "/dev/nvme0n1p2",
        "name": "root",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2022-08-13T00:46:13.350-0400"
      },
      {
        "bytes": {
          "available": 483773214720,
          "free": 483773214720,
          "total": 6965263593472,
          "used": 6481490378752
        },
        "files": {
          "total": 472533084,
          "used": 15748
        },
        "filesystem": "fuseblk",
        "mountpoint": "/run/media/shaun/Archive",
        "mountFrom": "/dev/sda1",
        "name": "Archive",
        "volumeType": [
          "Regular"
        ],
        "createTime": null
      },
      {
        "bytes": {
          "available": 102113718272,
          "free": 153945247744,
          "total": 1018886205440,
          "used": 864940957696
        },
        "files": {
          "total": 63250432,
          "used": 14892
        },
        "filesystem": "ext4",
        "mountpoint": "/run/media/shaun/Shtuff",
        "mountFrom": "/dev/sda2",
        "name": "Shtuff",
        "volumeType": [
          "Regular"
        ],
        "createTime": "2022-12-24T01:40:31.000-0500"
      },
      {
        "bytes": {
          "available": 187729215488,
          "free": 192507273216,
          "total": 511789260800,
          "used": 319281987584
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/var/cache",
        "mountFrom": "/dev/nvme0n1p2",
        "name": "root",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2022-08-13T00:46:13.357-0400"
      },
      {
        "bytes": {
          "available": 187729215488,
          "free": 192507273216,
          "total": 511789260800,
          "used": 319281987584
        },
        "files": {
          "total": null,
          "used": null
        },
        "filesystem": "btrfs",
        "mountpoint": "/var/log",
        "mountFrom": "/dev/nvme0n1p2",
        "name": "root",
        "volumeType": [
          "Subvolume"
        ],
        "createTime": "2022-08-13T00:46:13.367-0400"
      }
    ],
    "stat": 0.4212290048599243
  },
  {
    "type": "Btrfs",
    "result": [
      {
        "name": "",
        "uuid": "51c4846f-56aa-4508-8dd1-79d48f343c67",
        "devices": "nvme0n1p2",
        "features": "free_space_tree,no_holes,compress_zstd,skinny_metadata,verity,extended_iref",
        "generation": 2859756,
        "nodeSize": 16384,
        "sectorSize": 4096,
        "totalSize": 511789262848,
        "allocation": [
          {
            "type": "data",
            "dup": false,
            "used": 313254445056,
            "total": 445111336960
          },
          {
            "type": "metadata",
            "dup": true,
            "used": 2745237504,
            "total": 5368709120
          },
          {
            "type": "system",
            "dup": true,
            "used": 98304,
            "total": 33554432
          }
        ]
      }
    ],
    "stat": 0.07353901863098145
  },
  {
    "type": "Zpool",
    "error": "dlopen libzfs.so failed",
    "stat": 0.09721505641937256
  },
  {
    "type": "Battery",
    "result": [],
    "stat": 0.005460977554321289
  },
  {
    "type": "PowerAdapter",
    "result": [],
    "stat": 0.0029550790786743164
  },
  {
    "type": "Player",
    "error": "Player module is an alias of Media module",
    "stat": 0.000370025634765625
  },
  {
    "type": "Media",
    "result": {
      "song": {
      },
      "player": {
      }
    },
    "stat": 1.1310149431228638
  },
  {
    "type": "PublicIp",
    "result": {
    },
    "stat": 0.05821096897125244
  },
  {
    "type": "LocalIp",
    "result": [
      {
        "name": "eno1",
        "defaultRoute": true,
        "ipv4": "192.168.1.20/24",
        "ipv6": "fe80::8e75:caf2:ada9:5cbf/64",
        "mac": "e4:a8:df:8d:b7:13",
        "mtu": 1500,
        "speed": 1000,
        "flags": "UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP"
      }
    ],
    "stat": 0.14101696014404297
  },
  {
    "type": "DNS",
    "result": [
      "192.168.1.1"
    ],
    "stat": 0.022353053092956543
  },
  {
    "type": "Wifi",
    "result": [
      {
        "inf": {
          "description": "wlp1s0",
          "status": "down"
        },
        "conn": {
          "status": "",
          "ssid": "",
          "bssid": "",
          "protocol": "",
          "security": "",
          "signalQuality": null,
          "rxRate": null,
          "txRate": null,
          "channel": 0,
          "frequency": 0
        }
      }
    ],
    "stat": 0.11484801769256592
  },
  {
    "type": "DateTime",
    "result": "2025-07-21T12:27:10.363-0400",
    "stat": 0.008045077323913574
  },
  {
    "type": "Locale",
    "result": "en_CA.UTF-8",
    "stat": 0.0007619857788085938
  },
  {
    "type": "Vulkan",
    "result": {
      "apiVersion": "1.4.311",
      "conformanceVersion": "1.4",
      "driver": "radv [Mesa 25.1.6-cachyos1.2]",
      "gpus": [
        {
          "type": "Integrated",
          "vendor": "AMD",
          "name": "AMD Radeon Graphics (RADV RENOIR)",
          "driver": "Mesa 25.1.6-cachyos1.2",
          "platformApi": "Vulkan 1.4.311",
          "deviceId": 5686,
          "memory": {
            "dedicated": {
              "total": 0,
              "used": null
            },
            "shared": {
              "total": 8610807808,
              "used": null
            }
          },
          "deviceId": 5686
        }
      ]
    },
    "stat": 10.62900996208191
  },
  {
    "type": "OpenGL",
    "error": "Fastfetch was built without gl support.",
    "stat": 0.00150299072265625
  },
  {
    "type": "OpenCL",
    "result": {
      "version": "3.0",
      "name": "rusticl",
      "vendor": "Mesa/X.org",
      "gpus": []
    },
    "stat": 9.82047700881958
  },
  {
    "type": "Users",
    "result": [
      {
        "name": "shaun",
        "hostName": ":0",
        "sessionName": "tty2",
        "clientIp": "",
        "loginTime": "2025-07-15T04:23:27.261-0400"
      }
    ],
    "stat": 0.052810072898864746
  },
  {
    "type": "Bluetooth",
    "result": [],
    "stat": 0.007284045219421387
  },
  {
    "type": "BluetoothRadio",
    "result": [
      {
        "name": "carina",
        "address": "90:0F:0C:C6:5D:24",
        "lmpVersion": 10,
        "lmpSubversion": null,
        "vendor": "Unknown",
        "enabled": true,
        "discoverable": false,
        "connectable": true
      }
    ],
    "stat": 0.3984858989715576
  },
  {
    "type": "Sound",
    "result": [
      {
        "active": false,
        "main": false,
        "volume": 100,
        "name": "Effects Audio Sink",
        "identifier": "pw-effects",
        "platformApi": "PipeWire 1.4.6"
      },
      {
        "active": true,
        "main": true,
        "volume": 100,
        "name": "Family 17h/19h/1ah HD Audio Controller Analog Stereo",
        "identifier": "alsa_output.pci-0000_04_00.6.analog-stereo",
        "platformApi": "PipeWire 1.4.6"
      },
      {
        "active": false,
        "main": false,
        "volume": 100,
        "name": "Easy Effects Sink",
        "identifier": "easyeffects_sink",
        "platformApi": "PipeWire 1.4.6"
      },
      {
        "active": true,
        "main": false,
        "volume": 0,
        "name": "Renoir Radeon High Definition Audio Controller Digital Stereo (HDMI)",
        "identifier": "alsa_output.pci-0000_04_00.1.hdmi-stereo",
        "platformApi": "PipeWire 1.4.6"
      }
    ],
    "stat": 5.116895914077759
  },
  {
    "type": "Camera",
    "result": [
      {
        "name": "Integrated Camera: Integrated C",
        "vendor": "",
        "colorSpace": "sRGB",
        "id": "usb-0000:04:00.3-3",
        "width": 1280,
        "height": 720
      }
    ],
    "stat": 93.30115902423859
  },
  {
    "type": "Gamepad",
    "result": [],
    "stat": 0.05702805519104004
  },
  {
    "type": "Mouse",
    "result": [
      {
        "serial": "",
        "name": "XP-Pen Mouse"
      },
      {
        "serial": "",
        "name": "ckb1: Corsair Gaming HARPOON RGB Mouse vM"
      },
      {
        "serial": "",
        "name": "USB Laser Game Mouse"
      },
      {
        "serial": "",
        "name": "XP-Pen Eraser"
      },
      {
        "serial": "",
        "name": "XP-Pen Pen"
      },
      {
        "serial": "",
        "name": "ckb2: Corsair Gaming K55 RGB Keyboard vM"
      }
    ],
    "stat": 0.2735790014266968
  },
  {
    "type": "Keyboard",
    "result": [
      {
        "serial": "",
        "name": "USB Laser Game Mouse"
      }
    ],
    "stat": 0.06965208053588867
  },
  {
    "type": "Weather",
    "error": "ffNetworkingSendHttpRequest() failed",
    "stat": 0.004869937896728516
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "eno1",
        "defaultRoute": true,
        "txBytes": 10376,
        "rxBytes": 16005,
        "txPackets": 64,
        "rxPackets": 64,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 0.25185704231262207
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "SAMSUNG MZALQ512HALU-000L1",
        "devPath": "/dev/nvme0n1",
        "bytesRead": 10922,
        "bytesWritten": 5640192,
        "readCount": 0,
        "writeCount": 326
      },
      {
        "name": "HL-DT-ST DVDRAM GUE1N",
        "devPath": "/dev/sr0",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      },
      {
        "name": "WD My Book 25EE",
        "devPath": "/dev/sda",
        "bytesRead": 0,
        "bytesWritten": 0,
        "readCount": 0,
        "writeCount": 0
      }
    ],
    "stat": 0.19619202613830566
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "SAMSUNG MZALQ512HALU-000L1",
        "devPath": "/dev/nvme0n1",
        "interconnect": "NVMe",
        "kind": "SSD",
        "size": 512110190592,
        "serial": "S4YCNF1R303471",
        "removable": false,
        "readOnly": false,
        "revision": "EL1QFXV7",
        "temperature": 28.85
      },
      {
        "name": "HL-DT-ST DVDRAM GUE1N",
        "devPath": "/dev/sr0",
        "interconnect": "ATA",
        "kind": "SSD",
        "size": 1073741312,
        "serial": "",
        "removable": true,
        "readOnly": false,
        "revision": "ME04",
        "temperature": null
      },
      {
        "name": "WD My Book 25EE",
        "devPath": "/dev/sda",
        "interconnect": "USB",
        "kind": "HDD",
        "size": 8001562869760,
        "serial": "",
        "removable": false,
        "readOnly": false,
        "revision": "4009",
        "temperature": null
      }
    ],
    "stat": 16.736013889312744
  },
  {
    "type": "TPM",
    "result": {
      "version": "2.0",
      "description": "TPM 2.0 Device"
    },
    "stat": 0.13514602184295654
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "sysName": "Linux",
      "architecture": "x86_64",
      "version": "2.48.1",
      "versionGit": "",
      "cmakeBuiltType": "RelWithDebInfo",
      "compileTime": "Jul 19 2025, 15:21:36",
      "compiler": "gcc 15.1.1",
      "debugMode": false,
      "libc": "glibc 2.41"
    },
    "stat": 0.0013430118560791016
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0.0011119842529296875
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0.0004010200500488281
  }
]

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
sqlite3
opencl
libpulse
libddcutil
libelf
libzfs
Directx Headers
System yyjson
linux/videodev2
linux/wireless

sjclayton avatar Jul 21 '25 16:07 sjclayton

Why do you use compactType ? You'll get the result you want without this option. I've tested it, and I'll reproduce your issue. But without this option, all work fine.

froux07 avatar Jul 22 '25 06:07 froux07

@froux07

Without setting compactType multiple displays are printed across multiple lines.... The issue is that it appears format is completely ignored when showing multiple displays on the same line (which should not happen).

Without compactType I get this:

Display:      1920x1080 @ 60 Hz (24-inch) *
Display:      1920x1080 @ 60 Hz (24-inch)

My custom format should be applied no differently than it is if compactType is not set.

sjclayton avatar Jul 22 '25 07:07 sjclayton

It's by design.

Some people just want fastfetch behaves as what neofetch looks like, hence the option.

CarterLi avatar Jul 22 '25 07:07 CarterLi

It's by design.

@CarterLi

Yes, I get that the preset options for "compactType" are there for a reason, but there should still be a way to use a custom format string (if one is specified) when showing multiple displays on a single line.... Right now that is not possible, so if someone has "format" set they cannot use it with "compactType" in any way... it is just completely bypassed / ignored.

Maybe this would necessitate something like:

"compactType": "custom"

which would then not ignore whatever "format" is set to...

sjclayton avatar Jul 22 '25 08:07 sjclayton