Love this? Please consider supporting its creator by starring or sponsoring this project on GitHub!
From the project's README:
Alfred workflow to lock your Mac
The built-in "Lock" command is buggy for me.
$ npm install --global alfred-lock
Requires the Alfred Powerpack.
In Alfred, type
lock, and then press Enter.