Smart gaps with exceptions

Hyprland version
0.52.1

Hi there!

I am new to hyprland and i am trying to customize it for the first time. I am trying to make “smart gaps” (workspace uses gaps when 2 or more windows are open, otherwise no gaps). I found the following code in the wiki:

workspace = w[tv1], gapsout:0, gapsin:0 workspace = f[1], gapsout:0, gapsin:0 windowrule = border_size 0, match:float 0, match:workspace w[tv1] windowrule = rounding 0, match:float 0, match:workspace w[tv1] windowrule = border_size 0, match:float 0, match:workspace f[1] windowrule = rounding 0, match:float 0, match:workspace f[1]

and it works perfectly. However, I would like to customize it a bit further by adding exceptions. For example, when the only open window is kitty, I dont want it to remove the default gaps. I have been able to bring back the borders for the window, but I have not found a way to enable the gaps, as this is a workspace rule. Does anybody know if it is possible to do it?

Thanks in advance!