Guides

How to Automatically Lock Your Mac When You Walk Away

A Mac can require authentication after its screen saver starts or its display turns off. To trigger locking when your phone or watch moves away instead, you need a proximity-locking utility. These mechanisms watch different things: one measures inactivity, while the other uses a nearby device as a signal.

For a short trip away from your desk, pressing Control + Command + Q locks the Mac immediately. Automatic settings are useful backup for the times you forget.

Choose the trigger you actually need

Inactivity, proximity, and unlocking are separate behaviors
MethodTriggerImportant limit
macOS inactivity settingsThe display turns off or screen saver starts after the configured idle period.Your Mac can remain available during that period.
Bluetooth proximity utilityA selected nearby device disconnects or its signal crosses the utility’s threshold.Signal strength and device behavior can cause delayed or unwanted locks.
Manual Lock ScreenYou press the shortcut or choose Lock Screen.You have to remember to do it.
Apple Watch Auto UnlockYou return and meet Apple’s unlocking requirements.Auto Unlock is not a walk-away locking setting.

Set up automatic locking with macOS

  1. Open Apple menu → System Settings → Lock Screen.
  2. Choose a short idle interval for turning the display off. On a MacBook, review both battery and power-adapter choices.
  3. Set Require password after screen saver begins or display is turned off to Immediately.
  4. If you use a screen saver, review when it starts too.

Apple documents these controls in Lock Screen settings. Immediately removes the extra delay after the trigger; it does not make the display turn off the moment you stand up.

For example, a two-minute display timer still leaves a two-minute wait before that trigger. If that is too long for the situation, lock manually before leaving. Someone continuing to use the computer can also keep an inactivity-based trigger from occurring.

Save any work, leave the keyboard and pointing device untouched, and check what happens after the interval. Video playback or software that keeps the Mac awake can affect idle behavior. Keep your usual password or Touch ID fallback available.

Use proximity locking for a phone or watch

A proximity utility follows a device you choose, usually over Bluetooth. BLEUnlock is one open-source option whose documented features include locking when the selected device moves away, plus separate unlocking options. Check current compatibility before installing; our BLEUnlock comparison covers its requirements and alternatives.

Start with locking only if the utility lets you configure locking and unlocking separately. That makes the first check easier to understand: taking the device away should lock the Mac, and returning should leave you able to unlock with your normal method.

  1. Choose a supported device that you actually carry when leaving your desk.
  2. Enable the utility’s locking behavior and read how its distance or signal setting works.
  3. Take the device along your usual route out of the room. Check whether the Mac locks before someone could use it.
  4. Return and check that normal password or Touch ID access still works.
  5. Repeat while the device is in your pocket, while charging, and after sleep or a Bluetooth disconnect.

A phone left beside the keyboard cannot signal that you walked away. A Bluetooth signal is also affected by walls, interference, and the position of your body. Treat the utility’s threshold as something to check in your room, rather than a precise distance measurement.

Does Apple Watch lock a Mac when you walk away?

Apple’s Auto Unlock feature lets a nearby, authenticated Apple Watch help unlock the Mac. It does not provide a corresponding native walk-away locking switch. Keep the Mac’s inactivity settings or a suitable proximity utility for that separate job.

Our Apple Watch Auto Unlock guide covers setup and troubleshooting. If you are considering a phone companion app instead, the Near Lock alternatives guide explains the separate device requirements.

Where face unlock and App Lock fit

Hey Mac can help you return to a locked Mac using camera-based face recognition, and it can shield selected apps within your session. Its documented v1.0.6 feature set does not include a Bluetooth walk-away locking rule.

Protecting one app and locking macOS are different actions. For example, switching away from protected Mail can relock its app shield while Finder stays available. Locking the whole Mac covers your session until authentication. The app-locking guide explains when each scope is useful.

If the Mac locks too late or at the wrong time

With inactivity settings: review both the idle interval and the password delay. Check whether an app is keeping the display awake. Change one setting at a time so you can tell which change helped.

With proximity software: check the selected device, signal threshold, delay, and Bluetooth connection. Unwanted locks while you are still at the desk are a reason to adjust or stop relying on that configuration.

Keep the manual shortcut as a fallback. Also review lock-screen notification previews; a locked session can still show alerts if you allow them.

Questions about walk-away locking

Can a Mac lock when my iPhone leaves the room?

A compatible proximity utility can use your iPhone as a Bluetooth signal. Check its locking behavior with your actual device and layout. Native inactivity settings do not track the iPhone’s location.

Does turning the display off always lock the Mac?

Check the password requirement in Lock Screen settings. A delay there can leave a period before authentication is required. Set it to Immediately if you want the prompt as soon as the configured display or screen-saver trigger occurs.

About this guide

Written by Harshit Maurya, the developer of Hey Mac. Reviewed November 17, 2026 using Apple’s Lock Screen documentation and the documented behavior of the utilities discussed. Bluetooth response times were not measured for this guide.