Here is how to make the repo shared by @johnandmegh work with plasma6. This is based on Small changes to README.md to match the new branch by bmbeverst · Pull Request #2 · lliurex/kwin-grayscale-effect · GitHub, but with slight changes to adapt to plasma 6.
-
Download the version appropriate for Plasma6 from https://github.com/lliurex/kwin-grayscale-effect/archive/refs/heads/plasma6.zip
-
Extract the zip archive, if downloaded.
unzip kwin-grayscale-effect-plasma6.zip
-
Enter the repository directory
cd kwin-grayscale-effect-plasma6
-
Install the plugin
kpackagetool6 --type KWin/Effect --install kwin6_effect_grayscale
Copy “kwin6_effect_grayscale/metadata.json” to “/usr/share/kwin/”, using e.g.
sudo cp metadata.json /usr/share/kwin/
Now go to system settings -> Window Management -> Desktop Effects
and Enable Grayscale