samyyc.dev
LOC::Macau, China

..UTC+8

samyyc.dev

-- BPM

Mon May 20 2024

Making fastfetch's logo transparent in Foot Terminal

#106

/

samyyc

/

171 words

/

Updated 928 days ago

/

[中文]

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:

06DE8304-42C9-440B-B502-38F08066EEE6.png