You don’t need that, KWin handles sRGB content correctly without hacks - using the gamma 2.2 transfer function