Setup

Lock screen

Settings checked on macOS 15.8

The Mac should lock when you walk away, but not every time the screen dims while you are reading. A delay gives you both.

System SettingsLock Screen
Require password after screen saver begins or display is turned offAfter 15 minutes

Fifteen minutes suits a desk at home. In an office or a café, shorten it to Immediately or a minute, and lock by hand when you get up: Control-Command-Q locks the screen at once.

If this setting is greyed out and stuck on Immediately, iPhone Mirroring is the reason: macOS requires an immediate lock while iPhone Mirroring is allowed to authenticate automatically.

With Touch ID or an Apple Watch, unlocking costs nothing, so there is little reason to make this delay long.