You press Win+L → pixelated screenshot is taken → lock screen image is set → PC is locked.
Helps to stay focused and maintain an unobtrusive work environment, see Hund's recommendations.
Cases handled:
- manual PC lock with
Win+L - lock via
Start Menu→Power→Lock - lock after inactivity period (either via
Screen Saveror other methods) - lid close lock (not tested)
- paired Bluetooth device (phone) out of range (not tested)
- Download the latest release and extract the zip
- Run
install.cmdto register as a startup scheduled task and disable nativeWin+L(run as adminmight be required)
The installer disables the native Win+L shortcut via registry, so the app can handle it programmatically (screenshot, set lock screen, then lock). Running uninstall.cmd re-enables native Win+L and removes the scheduled task.
Modify config.json to enable/disable locking handlers and adjust settings.
To reduce screenshot size, provide blurSize with a greater value. Effectively, blur size means screenshot scale, e.g. when screen resolution is 1920x1080, blurSize=2 produces a 960x540 screenshot.
———
Special thanks to mikeyww from AHK forum for help.
———
Enjoy!
A donut, maybe? 🍩