I use a compositor (compton/picon) to dim all windows except the active one.
https://github.com/mikelward/conf/blob/main/config/compton.c...
https://github.com/mikelward/conf/blob/main/config/compton.c...
Tried also transparency and it really does not work for me either.