Mon May 20 2024
Making fastfetch's logo transparent in Foot Terminal
Making fastfetch's logo transparent in Foot Terminal
System environment:
- Arch Linux
- Hyprland (Wayland)
- Foot Terminal + Zsh + Fastfetch
Foot only supports Sixel; it doesn't support the Kitty or iTerm image protocols. When you set type to Sixel in fastfetch, image transparency stops working. After a lot of web surfing, I found a solution.
First, install Chafa:
sudo pacman -S chafa
Next, cd to the directory containing the image and run the following command:
chafa -f sixels -s WxH xxx.png > xxx.sixel
Here, -s WxH sets the maximum number of rows and columns the image can occupy; it can be omitted. xxx.png is your image.
This command generates a sixel file in the same directory. You can then use cat xxx.sixel to view the image.
Next, on to the fastfetch configuration
The config file should be ~/.config/fastfetch/config.jsonc. If you don't have this file, run:
fastfetch --gen-config
Open this file in your code editor of choice, then configure the logo:
"logo": {
Configuration done. Here's the result:

