If you want to toggle between ClearType and grayscale font smoothing in Windows 10/11, these registry files will do the trick. You will need to log out (or reboot) after applying them to see their effects. They will only affect the currently logged in user when you merge them.
https://gist.github.com/bradwilson/3bfd731ff2c6c7acb66a66d1758bbaf4
Hacker News