I am not that great with windows, a look at all the posts on this blog will tell you that, Now with that said, I need to lock my laptop (Windows !) after a few minutes of inactivity.
NOTE: On windows 11 HOME you have to Enable Local Security Policy (secpol.msc) first as it is not installed by default
To do that, you run secpol.msc, then look for Local Policies > Security Options “Interactive Logon: Machine inactivity limit” and set that to 1200 (20 minutes), then restart the computer, and there you have it, after 20 minutes, you need to login again
The windows login screen will appear after 20 minutes, you don’t need to set a screensaver or even connect this to your screen timeout (which is 10 minutes in my case)