By default in Garuda Linux, when you launch a terminal, it runs fastfetch to display system information. If you'd like to customize this output with your own configuration, follow the steps below.
The configuration file is located at ~/.config/fastfetch/config.jsonc. Here's an example of a customized config:
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "$(fastfetch.sh logo)",
"height": 18
},
"display": {
"separator": " : "
},
"modules": [
{
"type": "command",
"key": " ",
"keyColor": "blue",
"text": "splash=$(hyprctl splash);echo $splash"
},
{
"type": "custom",
"format": "┌──────────────────────────────────────────┐"
},
{
"type": "chassis",
"key": " Chassis",
"format": "{1} {2} {3}"
},
{
"type": "os",
"key": " OS",
"format": "{2}",
"keyColor": "red"
},
{
"type": "kernel",
"key": " Kernel",
"format": "{2}",
"keyColor": "red"
},
{
"type": "packages",
"key": " Packages",
"keyColor": "green"
},
{
"type": "display",
"key": " Display",
"format": "{1}x{2} @ {3}Hz [{7}]",
"keyColor": "green"
},
{
"type": "terminal",
"key": " Terminal",
"keyColor": "yellow"
},
{
"type": "wm",
"key": " WM",
"format": "{2}",
"keyColor": "yellow"
},
{
"type": "custom",
"format": "└──────────────────────────────────────────┘"
},
"break",
{
"type": "title",
"key": " ",
"format": "{6} {7} {8}"
},
{
"type": "custom",
"format": "┌──────────────────────────────────────────┐"
},
{
"type": "cpu",
"format": "{1} @ {7}",
"key": " CPU",
"keyColor": "blue"
},
{
"type": "gpu",
"format": "{1} {2}",
"key": " GPU",
"keyColor": "blue"
},
{
"type": "gpu",
"format": "{3}",
"key": " GPU Driver",
"keyColor": "magenta"
},
{
"type": "memory",
"key": " Memory ",
"keyColor": "magenta"
},
{
"type": "command",
"key": " OS Age ",
"keyColor": "red",
"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": "red"
},
{
"type": "custom",
"format": "└──────────────────────────────────────────┘"
},
{
"type": "colors",
"paddingLeft": 2,
"symbol": "circle"
},
"break"
]
}
This is the config file that fastfetch reads by default.
You can make your terminal even more fun by adding a random Pokémon each time it launches. First, install PokéGo from the AUR:
paru -S pokego
Then, edit your ~/.config/fish/config.fish file. Locate this block:
if status --is-interactive && type -q fastfetch
fastfetch
end
And replace it with:
if status --is-interactive && type -q fastfetch
pokego -r 1 --no-title | fastfetch --file-raw -
end
You can change
-r 1to select the Pokémon generation of your choice.