master ohmu/fastfetch-openbsd / presets / examples / 20.jsonc
ohmu  ·  2026-10-15
  1// Inspired by https://github.com/usgraphics/TR-100
  2{
  3    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
  4    "logo": null,
  5    "display": {
  6        "pipe": true,
  7        "key": {
  8            "width": 16
  9        },
 10        "separator": "│ ",
 11        "percent": {
 12            "type": ["bar", "hide-others"]
 13        },
 14        "bar": {
 15            "border": null,
 16            "char": {
 17                "elapsed": "█",
 18                "total": "░"
 19            },
 20            "width": 40
 21        },
 22        "constants": [
 23            "\u001b[42C"
 24        ]
 25    },
 26    "modules": [
 27        {
 28            "type": "custom",
 29            "format": "┌┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┐"
 30        },
 31        {
 32            "type": "custom",
 33            "format": "├┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┤"
 34        },
 35        {
 36            "type": "version",
 37            "key": " ",
 38            "format": "│                   FASTFETCH v{version}                   │"
 39        },
 40        {
 41            "type": "custom",
 42            "format": "│                 TR-100 MACHINE REPORT                 │"
 43        },
 44        {
 45            "type": "custom",
 46            "format": "├────────────┬──────────────────────────────────────────┤"
 47        },
 48        {
 49            "type": "os",
 50            "key": "│ OS         │{$1}"
 51        },
 52        {
 53            "type": "kernel",
 54            "key": "│ KERNEL     │{$1}"
 55        },
 56        {
 57            "type": "custom",
 58            "format": "├────────────┼──────────────────────────────────────────┤"
 59        },
 60        {
 61            "type": "title",
 62            "key": "│ HOSTNAME   │{$1}",
 63            "format": "{host-name}"
 64        },
 65        {
 66            "type": "localip",
 67            "key": "│ CLIENT IP  │{$1}",
 68            "format": "{ipv4}"
 69        },
 70        {
 71            "type": "localip",
 72            "key": "│ MAC ADDR   │{$1}",
 73            "format": "{mac} ({ifname})",
 74            "showIpv4": false,
 75            "showMac": true
 76        },
 77        {
 78            "type": "dns",
 79            "key": "│ DNS        │{$1}",
 80            "showType": "ipv4"
 81        },
 82        {
 83            "type": "title",
 84            "key": "│ USER       │{$1}",
 85            "format": "{user-name}"
 86        },
 87        {
 88            "type": "host",
 89            "key": "│ MACHINE    │{$1}",
 90            "format": "{name}"
 91        },
 92        {
 93            "type": "custom",
 94            "format": "├────────────┼──────────────────────────────────────────┤"
 95        },
 96        {
 97            "type": "cpu",
 98            "key": "│ PROCESSOR  │{$1}",
 99            "format": "{name}"
100        },
101        {
102            "type": "cpu",
103            "key": "│ CORES      │{$1}",
104            "format": "{cores-physical} PHYSICAL CORES / {cores-logical} THREADS",
105            "showPeCoreCount": false
106        },
107        {
108            "type": "cpu",
109            "key": "│ CPU FREQ   │{$1}",
110            "format": "{freq-max}{/freq-max}{freq-base}{/}"
111        },
112        {
113            "type": "loadavg",
114            "compact": false,
115            "key": "│ LOAD  {duration>2}m  │{$1}" // pad duration to 2 chars
116        },
117        {
118            "type": "custom",
119            "format": "├────────────┼──────────────────────────────────────────┤"
120        },
121        {
122            "type": "memory",
123            "key": "│ MEMORY     │{$1}",
124            "format": "{used} / {total} [{percentage}]",
125            "percent": {
126                "type": ["num"]
127            }
128        },
129        {
130            "type": "memory",
131            "key": "│ USAGE      │{$1}",
132            "format": "",
133            "percent": {
134                "type": ["bar", "hide-others"]
135            }
136        },
137        {
138            "type": "custom",
139            "format": "├────────────┼──────────────────────────────────────────┤"
140        },
141        {
142            "type": "disk",
143            "key": "│ VOLUME     │{$1}",
144            "format": "{size-used} / {size-total} [{size-percentage}]",
145            "folders": "/",
146            "percent": {
147                "type": ["num"]
148            }
149        },
150        {
151            "type": "disk",
152            "key": "│ DISK USAGE │{$1}",
153            "format": "",
154            "percent": {
155                "type": ["bar", "hide-others"]
156            }
157        },
158        {
159            "type": "custom",
160            "format": "├────────────┼──────────────────────────────────────────┤"
161        },
162        {
163            "type": "users",
164            "key": "│ LAST LOGIN │{$1}",
165            "format": "{login-time}{?client-ip} ({client-ip})",
166            "myselfOnly": true
167        },
168        {
169            "type": "uptime",
170            "key": "│ UPTIME     │{$1}"
171        },
172        {
173            "type": "custom",
174            "format": "└────────────┴──────────────────────────────────────────┘"
175        }
176    ]
177  }