Create the config file:
cd ~/.configmkdir -p fastfetchfastfetch --gen-configcd fastfetchmv config.jsonc config.jsonc.bakRun the following to create the block to create the fastfetch folder and config file:
cd ~/.config
mkdir -p fastfetch
fastfetch --gen-config
cd fastfetch
mv config.jsonc config.jsonc.bak
recreate the fastfetch config file: nano config.jsonc
paste this in:
{
"$schema": "<https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json>",
"logo": {
"type": "builtin",
"height": 15,
"width": 30,
"padding": {
"top": 5,
"left": 3
}
},
"modules": [
"break",
{
"type": "custom",
"format": "\\\\u001b[90m┌──────────────────────Hardware──────────────────────┐"
},
{
"type": "host",
"key": " PC",
"keyColor": "green"
},
{
"type": "cpu",
"key": "│ ├",
"keyColor": "green"
},
{
"type": "gpu",
"key": "│ ├",
"keyColor": "green"
},
{
"type": "memory",
"key": "│ ├",
"keyColor": "green"
},
{
"type": "disk",
"key": "└ └",
"keyColor": "green"
},
{
"type": "custom",
"format": "\\\\u001b[90m└────────────────────────────────────────────────────┘"
},
"break",
{
"type": "custom",
"format": "\\\\u001b[90m┌──────────────────────Software──────────────────────┐"
},
{
"type": "os",
"key": " OS",
"keyColor": "yellow"
},
{
"type": "kernel",
"key": "│ ├",
"keyColor": "yellow"
},
{
"type": "bios",
"key": "│ ├",
"keyColor": "yellow"
},
{
"type": "packages",
"key": "│ ├",
"keyColor": "yellow"
},
{
"type": "shell",
"key": "└ └",
"keyColor": "yellow"
},
"break",
{
"type": "de",
"key": " DE",
"keyColor": "blue"
},
{
"type": "lm",
"key": "│ ├",
"keyColor": "blue"
},
{
"type": "wm",
"key": "│ ├",
"keyColor": "blue"
},
{
"type": "wmtheme",
"key": "│ ├",
"keyColor": "blue"
},
{
"type": "terminal",
"key": "└ └",
"keyColor": "blue"
},
{
"type": "custom",
"format": "\\\\u001b[90m└────────────────────────────────────────────────────┘"
},
"break",
{
"type": "custom",
"format": "\\\\u001b[90m┌────────────────────Uptime / Age / DT────────────────────┐"
},
{
"type": "command",
"key": " OS Age ",
"keyColor": "magenta",
"text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days"
},
{
"type": "uptime",
"key": " Uptime ",
"keyColor": "magenta"
},
{
"type": "datetime",
"key": " DateTime ",
"keyColor": "magenta"
},
{
"type": "custom",
"format": "\\\\u001b[90m└─────────────────────────────────────────────────────────┘"
},
// {
// "type": "colors"
// },
{
"type": "colors",
"paddingLeft": 2,
"symbol": "circle"
}
]
}