everyday mac tools

How to lock a Mac screen instantly: shortcut, hot corner, Touch ID

· 6 min read

Press Control-Command-Q and the Mac locks at once: the login window appears and nothing can be used until you enter your password or use Touch ID. On a Mac with Touch ID, a single press of the Touch ID button does the same thing. Both leave your apps, downloads and open documents running underneath, exactly as they were.

Those two cover most people. The rest of this guide covers the other routes, the one setting that decides whether sleep counts as locking, and what a locked screen does and does not protect.

Six ways to lock the screen

  1. Control-Command-Q. Works in any app. Mind the Control key: Command-Q by itself quits the app in front.
  2. The Touch ID button. Press it; resting a finger on it is not enough. This works on a MacBook with Touch ID and on a Magic Keyboard with Touch ID paired to an Apple silicon Mac.
  3. The lock key. A Magic Keyboard without Touch ID has a key with a padlock symbol in the top right corner. One press locks the screen.
  4. Apple menu, Lock Screen. Slower, and the one to remember when a keyboard shortcut is not responding.
  5. A hot corner. Push the pointer into a corner of the screen and the Mac locks. Setup is below.
  6. Close the lid. This puts a MacBook to sleep. Whether it also locks depends on a setting covered further down.

There is a Terminal route as well, for scripts and remote sessions:

pmset displaysleepnow

That turns the display off immediately. Like the lid, it locks only if the Mac is set to require a password straight away.

Lock, sleep and log out are not the same thing

The three get confused, and the difference matters when something is running.

  • Lock closes the screen and the keyboard to anyone without your password. Everything else carries on: exports finish, downloads continue, music keeps playing.
  • Sleep pauses the Mac. Work in progress stops until it wakes, which is why a long transfer can stall. Stop a Mac sleeping during a long download or upload covers that case.
  • Log out quits every app and ends your session. It is the slowest of the three and the most thorough, since nothing of yours is left running.

So if a render or an upload is in progress and you need to step away, lock the screen and leave the Mac awake.

Set up a hot corner that locks the screen

  1. Open System Settings, then Desktop & Dock.
  2. Scroll to the bottom and click Hot Corners.
  3. Click the pop-up menu for the corner you want and choose Lock Screen.
  4. Click Done.

A bare hot corner fires every time the pointer overshoots, which gets old quickly. To prevent that, hold a modifier key (Command, Option, Control or Shift) while you open the pop-up menu in step 3. The menu items then show that key’s symbol, and the corner works only while the key is held down. Set up hot corners on a Mac without triggering them by accident goes through the choice of corner and key in more detail.

Make sure sleep and the screen saver lock too

Closing the lid, letting the display turn off, and starting the screen saver all rely on one setting. Without it, whoever opens the lid lands on your desktop.

  1. Open System Settings, then Lock Screen.
  2. Find Require password after screen saver begins or display is turned off.
  3. Set it to Immediately.

Any other value leaves a grace period, during which the Mac wakes with no password asked. Require a password immediately after a Mac sleeps explains the trade-offs.

The same pane holds the timers that lock the Mac when you forget to: Start Screen Saver when inactive and the two Turn display off settings, one for battery and one for the power adapter. A few minutes is a sensible value for a laptop that leaves the house.

If you set up more than one Mac, or want these changes easy to reverse, Mainspring lists password on sleep and hot corners among its one-click power-ups. Each one is a real macOS setting, snapshotted before it changes so it flips back with a click.

What a locked screen still shows

A locked Mac is not a blank one. Check what it displays to a passerby.

  • Notifications. Message previews can appear on the lock screen. In System Settings, Notifications, turn off Allow notifications when the screen is locked, or set Show previews to When Unlocked.
  • Account names. The login window shows your name and picture, plus any other accounts on the Mac.
  • A message, if you set one. System Settings, Lock Screen, Show message when locked, then Set. A phone number or email address here gives a lost laptop a way home. Put nothing private in it.
  • Media controls and sound. Audio that was playing keeps playing.

What locking does not protect

Locking stops someone who walks up to your Mac. It does nothing against someone who knows your login password, and on a shared Mac that may be a partner, a child or a coworker. Once they are signed in, every file in your account opens normally. Keep files private from someone who knows your Mac password deals with that situation directly.

For a few items that need a lock of their own, an encrypted disk image made in Disk Utility works, though you have to remember to eject it each time. Hushbox does that job from the Finder right-click menu: Lock with Hushbox turns a file or folder into an AES-256 encrypted item where it sits, opened with Touch ID or the Hushbox password. The part that matters here is that locked items close again by themselves when the screen locks, when the Mac sleeps, or after an idle period you pick, so Control-Command-Q shuts those files as well. The limits are worth knowing: the name of a locked item still shows in Finder, and there is no password recovery. It is $9 once for two Macs after a 24-hour trial, and unlocking stays free.

Questions

Does locking the screen stop downloads or exports? No. Locking only blocks the screen and input. Apps keep working, as long as the Mac itself does not go to sleep afterward.

Control-Command-Q does nothing. What is wrong? Something in front is intercepting the keys, most often a remote desktop session or a virtual machine window. Use Apple menu, Lock Screen instead, and check System Settings, Keyboard, Keyboard Shortcuts for a shortcut that reuses the same combination.

Can I lock a Mac I left at the office from my phone? Find My can lock a Mac remotely, but that is a heavier step meant for a lost or stolen machine, not a daily habit. Find My on a Mac: what it can and cannot do explains what it involves.

Will the Mac lock when I walk away wearing my Apple Watch? No. An Apple Watch can unlock a Mac, set up in System Settings, Touch ID & Password, but macOS does not lock the screen when you leave. Use the shortcut or a short inactivity timer.