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