How to make the whole screen grayscale in KDE (wayland)?

See this post above How to make the whole screen grayscale in KDE (wayland)? - #4 by archisman to set up the grayscale effect.

To assign a shortcut for Toggling Grayscale effect, go to system settings → keyboard → shortcuts and click on “Add New → Command or Script”. After that, for the command, use

bash -c 'qdbus org.kde.KWin /Effects org.kde.kwin.Effects.isEffectLoaded kwin6_effect_grayscale | grep -q true && qdbus org.kde.KWin /Effects org.kde.kwin.Effects.unloadEffect kwin6_effect_grayscale || qdbus org.kde.KWin /Effects org.kde.kwin.Effects.loadEffect kwin6_effect_grayscale'

And name it something like “Toggle Grayscale”.

I am using ctrl + meta + c, for toggling – the same key combination works in Windows.