How to add transparency to kitty

In your ~/.config/kitty/kitty.conf add:

background_opacity         0.5
dynamic_background_opacity yes

but you do do not have configured picom running kitty you will see

[0.134] Failed to enable transparency. This happens when your desktop environment does not support compositing.
[0.158] [glfw error 65544]: process_desktop_settings: failed with error: [org.freedesktop.DBus.Error.ServiceUnknown] The name is not activatable
[0.158] [glfw error 65544]: Notify: Failed to get server capabilities error: [org.freedesktop.DBus.Error.ServiceUnknown] The name is not activatable

So you need to install picom:

yay -S picom

and add to your ~/.config/picom/picom.conf:

mkdir -p ~/.config/picom
echo 'backend = "glx";' > ~/.config/picom/picom.conf

now calling picom

picom --config ~/.config/picom/picom.conf

you should see transparency in new kitty windows that you opening now.

If you have problems with glx backend you can try xrender or glx-legacy:

Picom supports several backends that you can use for rendering. The main backends available in Picom are:

If you want to start picom with i3 you can add to your ~/.config/i3/config:

exec_always --no-startup-id picom --config ~/.config/picom/picom.conf -b

Sources:

https://www.reddit.com/r/linux4noobs/comments/99s6tm/i_hope_this_is_the_right_subreddit_but_how_do_i/ https://github.com/i3/i3/discussions/4841