システム情報を表示するツールであるNeofetchが開発終了とのことなので後継のFastfetchを使ってみました。

https://github.com/fastfetch-cli/fastfetch

環境

  • Arch Linux
  • fastfetch 2.20.0

構築

  1. インストール
sudo pacman -S fastfetch
  1. テーマの作成 config.jsonc
~/.config/fastfetch/config.jsonc
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"modules": [
{
"key": "Machine ",
"type": "host"
},
{
"key": " BIOS ",
"type": "bios"
},
{
"key": " CPU ",
"type": "cpu"
},
{
"key": " GPU ",
"type": "gpu"
},
{
"key": " Memory ",
"type": "memory"
},
{
"key": " Storage ",
"type": "disk"
},
{
"key": " Res ",
"type": "display"
},
{
"key": "Distro ",
"type": "os"
},
{
"key": " Kernel ",
"type": "kernel"
},
{
"key": "DE ",
"type": "de"
},
{
"key": " WM ",
"type": "wm"
},
{
"key": " WMTheme ",
"type": "wmtheme"
},
{
"key": " Theme ",
"type": "theme"
},
{
"key": " Icons ",
"type": "icons"
},
{
"key": "Terminal ",
"type": "terminal"
},
{
"key": " Theme ",
"type": "terminaltheme"
},
{
"key": " Font ",
"type": "terminalfont"
},
{
"key": " Shell ",
"type": "shell"
},
{
"key": " Locale ",
"type": "locale"
}
]
}

独自のテーマを作成する際はプリセットの/usr/share/fastfetch/presets/all.jsoncをコピーしていらないものを削除すると良いかもしれません。
仕様はJSONスキーマを参考にします。
https://github.com/fastfetch-cli/fastfetch/wiki/Json-Schema#modules_items_anyOf_i1_oneOf_i11_compactType

実行

デフォルト

fastfetch

~/.config/fastfetch/config.jsoncが存在する場合は優先的に読み込まれる。

プリセット一覧

fastfetch --list-presets

プリセット all

fastfetch -c all

プリセット neofetch

fastfetch -c neofetch

文字修飾