swaylock is a screen locker for the SwayWM. It locks the screen, requiring the to enter password to unlock it.
Unfortunately, the original project doesn't support screenshots and dimming. That's why I chose swaylock-effect, however this project was abandoned by the author, so I'm using a supported fork.
To execute swaylock use hotkey Win+Esc.