Many ways to lock your MacBook
Posted by jpluimers on 2018/07/31
There are [WayBack] 7 ways to lock your MacBook – CNET: When it comes to locking your Mac, you have options.
For now I’ve added the below alias to my ~/.bash_profile
which only works if you have “require a password immediately after sleep or screensaver begins”. I have that enabled (with a 5 second delay, not immediate so that when I’m behind my laptop and it starts the screensaver I can still move the mouse or touch a key to keep it awake).
alias sleep-display='pmset displaysleepnow'
See:
- [WayBack] macos – Putting the display to sleep (⇧⌃⏏/shift+control+eject) in AppleScript – Stack Overflow
- [WayBack] macos – Applescript to lock the screen – Super User
- [WayBack] macos – Lock Screen Command One-Liner – Ask Different
–jeroen
Leave a Reply