A step-by-step guide to setting up a custom text-based logo in Fastfetch inside the Termux emulator.
Warning
This guide is verified to work on Fastfetch version 2.63. In newer versions (including 2.65), the configuration structure has changed, and this setup may not function correctly.
How to compile the working version from source using Ninja:
pkg update && pkg upgrade -y
pkg install git cmake clang python ninja binutils -y
git clone https://github.com/fastfetch-cli/fastfetch.git
cd fastfetch && git checkout 2.63.0
mkdir -p build && cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release
ninja && ninja installInstall the image-to-character converter:
pkg install chafaCreate a text file containing the logo from your image (replace /sdcard/logo.jpeg with the actual path to your image):
chafa /sdcard/logo.jpeg --size 26x13 > ~/logo.txtGenerate the default configuration file if you haven't already:
fastfetch --gen-configOpen the configuration file using the Nano text editor:
nano ~/.config/fastfetch/config.jsoncFind the "logo" block and replace it with the code below. If it does not exist, insert this code right after the first opening curly bracket {. Make sure there is a comma after the closing bracket of the logo block:
"logo": {
"type": "raw",
"source": "~/logo.txt",
"width": 26,
"height": 13
},Note
The height is set to 13 to match the conversion size used in Step 2.
- Press
Ctrl + O, then hitEnterto save. - Press
Ctrl + Xto exit.
Инструкция по установке кастомного текстового логотипа в утилиту Fastfetch внутри эмулятора Termux.
Warning
Данное руководство гарантированно работает на версии Fastfetch 2.63. На более новых версиях (включая 2.65) структура параметров изменилась, и текущая конфигурация может работать некорректно.
Как скомпилировать рабочую версию из исходников через Ninja:
pkg update && pkg upgrade -y
pkg install git cmake clang python ninja binutils -y
git clone https://github.com/fastfetch-cli/fastfetch.git
cd fastfetch && git checkout 2.63.0
mkdir -p build && cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release
ninja && ninja installУстановите конвертер изображений в текстовые символы:
pkg install chafaСоздайте текстовый файл с логотипом из вашей картинки (замените /sdcard/logo.jpeg на свой путь к изображению):
chafa /sdcard/logo.jpeg --size 26x13 > ~/logo.txtСгенерируйте стандартный файл настроек, если вы еще этого не делали:
fastfetch --gen-configОткройте файл настроек через текстовый редактор Nano:
nano ~/.config/fastfetch/config.jsoncНайдите блок "logo" и замените его код представленным ниже. Если блок отсутствует, вставьте этот код сразу после первой открывающей фигурной скобки {. Убедитесь, что после закрывающей скобки блока стоит запятая:
"logo": {
"type": "raw",
"source": "~/logo.txt",
"width": 26,
"height": 13
},Note
Высота установлена на 13 в соответствии с размером конвертации из Шага 2.
- Нажмите
Ctrl + O, затемEnterдля сохранения изменений в Nano. - Нажмите
Ctrl + Xдля выхода из редактора.