fastfetch/presets/examples/20.jsonc 5.0 K raw
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": 6
13
        },
14
        "bar": {
15
            "border": {
16
        "left": "",
17
        "right": "",
18
            
19
            },
20
            "char": {
21
              "elapsed": "█",
22
            },
23
            "charTotal": "░",
24
            "width": 40
25
        },
26
        "constants": [
27
            "\u001b[42C"
28
        ]
29
    },
30
    "modules": [
31
        {
32
            "type": "custom",
33
            "format": "┌┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┐"
34
        },
35
        {
36
            "type": "custom",
37
            "format": "├┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┤"
38
        },
39
        {
40
            "type": "custom",
41
            "format": "│                 TR-100 MACHINE REPORT                 │"
42
        },
43
        {
44
            "type": "custom",
45
            "format": "├────────────┬──────────────────────────────────────────┤"
46
        },
47
        {
48
            "type": "os",
49
            "key": "│ OS         │{$1}"
50
        },
51
        {
52
            "type": "kernel",
53
            "key": "│ KERNEL     │{$1}"
54
        },
55
        {
56
            "type": "custom",
57
            "format": "├────────────┼──────────────────────────────────────────┤"
58
        },
59
        {
60
            "type": "title",
61
            "key": "│ HOSTNAME   │{$1}",
62
            "format": "{host-name}"
63
        },
64
        {
65
            "type": "title",
66
            "key": "│ USER       │{$1}",
67
            "format": "{user-name}"
68
        },
69
        {
70
            "type": "host",
71
            "key": "│ MACHINE    │{$1}",
72
            "format": "MacBook Pro"
73
        },
74
        {
75
            "type": "custom",
76
            "format": "├────────────┼──────────────────────────────────────────┤"
77
        },
78
        {
79
            "type": "cpu",
80
            "key": "│ PROCESSOR  │{$1}",
81
            "format": "{name}"
82
        },
83
        {
84
            "type": "cpu",
85
            "key": "│ CORES      │{$1}",
86
            "format": "{cores-physical} PHYSICAL CORES / {cores-logical} THREADS",
87
            "showPeCoreCount": false
88
        },
89
        {
90
            "type": "cpu",
91
            "key": "│ CPU FREQ   │{$1}",
92
            "format": "{freq-max}{/freq-max}{freq-base}{/}"
93
        },
94
        {
95
            "type": "loadavg",
96
            "compact": false,
97
            "key": "│ LOAD  {duration>2}m  │{$1}" // pad duration to 2 chars
98
        },
99
        {
100
            "type": "custom",
101
            "format": "├────────────┼──────────────────────────────────────────┤"
102
        },
103
        {
104
            "type": "memory",
105
            "key": "│ MEMORY     │{$1}",
106
            "format": "{used} / {total} [{percentage}]"
107
        },
108
        {
109
            "type": "memory",
110
            "key": "│ USAGE      │{$1}",
111
            "format": ""
112
        },
113
        {
114
            "type": "custom",
115
            "format": "├────────────┼──────────────────────────────────────────┤"
116
        },
117
        {
118
            "type": "disk",
119
            "key": "│ VOLUME     │{$1}",
120
            "format": "{size-used} / {size-total} [{size-percentage}]",
121
            "folders": "/"
122
        },
123
        {
124
            "type": "disk",
125
            "key": "│ DISK USAGE │{$1}",
126
            "format": ""
127
        },
128
        {
129
            "type": "custom",
130
            "format": "├────────────┼──────────────────────────────────────────┤"
131
        },
132
        {
133
            "type": "users",
134
            "key": "│ LAST LOGIN │{$1}",
135
            "format": "{login-time}{?client-ip} ({client-ip})",
136
            "myselfOnly": true
137
        },
138
        {
139
            "type": "uptime",
140
            "key": "│ UPTIME     │{$1}"
141
        },
142
        {
143
            "type": "custom",
144
            "format": "└────────────┴──────────────────────────────────────────┘"
145
        }
146
    ]
147
  }