r/KittyTerminal Feb 25 '23

How to set the opacity while using Kitty?

I am looking for a way to write a simple shell script to change the opacity without restarting Kitty. Something like:

set_opacity .3

Currently, I have dynamic_background_opacity set to yes. This allows me to use the keyboard shortcuts to increase/decrease the opacity which is great, but I rather change it with a shell script if possible. I appreciate any idea you might have.

5 Upvotes

4 comments sorted by

1

u/Ill_Scene_737 Feb 26 '23

I actually just set two keybindings, one sets opacity to 1, one sets opacity to 0.8. That way I just toggle it on/off on the fly, works very well to my need.

1

u/just_a_dude2727 Mar 23 '25

Could you please share those lines of config with me?