Skip to main content
Question

CMD + L for lock screen

  • June 21, 2019
  • 5 replies
  • 51 views

Forum|alt.badge.img+13

Is there a way to mass configure Macs to change the lock screen short cut to CMD + L?

5 replies

Forum|alt.badge.img+12
  • Valued Contributor
  • June 21, 2019

I haven't found one. What i do use is "hot corners" and set my screensaver to start when i drag my mouse to the lower right corner.


tfenna
Forum|alt.badge.img+4
  • New Contributor
  • June 21, 2019

This should do it

#!/bin/bash

sudo -u $3 defaults write -g NSUserKeyEquivalents -dict-add "Lock Screen" -string "@l"

Though I found I needed to reboot for it to work globally after applying
Until I rebooted it would only work in some applications


Forum|alt.badge.img+7
  • New Contributor
  • June 21, 2019

Command + L is a very common key shortcut to go to a browser's URL Bar. Why not just teach your users about the builtin key command - Control+Command+Q?


Forum|alt.badge.img+8
  • Valued Contributor
  • June 21, 2019

If you are not paying attention and hit Option+Command+Q you just quit the current app, so I can see why you might want to map a different series of keys. Command+L is probably not the best choice to lock the screen because of what TimArnold stated above.


Forum|alt.badge.img+12
  • Valued Contributor
  • June 22, 2019

I'd like to echo @TimArnold 's comment.

Unless there's an accessibility issue, I'd err on the side of keeping the defaults so that users aren't confused when they're outside of the managed bubble.