Hi, here’s my Fastfetch configuration jsonc file:
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"modules": [
"title",
"separator",
"os",
"kernel",
"shell",
"locale",
"break",
"colors"
],
"logo": "cachyos_small"
}
How can I add os age
here?
divis
2
I took this out of my config.jsonc which is part of the ChrisTitusTech’s .bashrc
Configuration I use:
{
“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”
}
On my system it shows a nice:
OS Age → 5 days
Hope it is of some use to you
3 Likes