There is a great app called knock which lets you unlock your mac by tapping on your phone twice while in proximity.
Unfortunately in order for the app on your phone to unlock your mac, you must have locked your computer using their lock utility.
The 3 ways I normally lock my computer do not seem to work with the app.
- control + shift + eject
- Waiting for screen saver
Their utility must be interfaced with a mouse and can not be triggered from the keyboard as far as I can tell.
How could you write a script (applescript?) that would lock the computer using their interface?
knock to unlock interface
Alfred lock interface