The only thing I missed about my Windows computer was locking the screen, since I was so used to locking my computer with ⊞ Win+L. Mac offered an alternative called the Hot Corner, but it never was so intuitive and fast as pressing ⊞ Win+L. However, Mac now supports locking the computer by pressing ⌘ Command+L from macOS Mojave. (check needed)

How do I do it?

  1. Go to System Preferences.

2. Go to Keyboard → Shortcuts → App Shortcuts and press + at the bottom.

3. On your Menu Bar, press the  Apple Logo. Check the name of ^ Control+⌘ Command+Q. It is responsible for locking your Mac. Remember the name of the menu.

4. Go back to the Preference app. Select All Applications at Application Setting. Enter the Menu Title you have just checked. This title will vary according to your macOS Language Preference. Finally, enter ⌘ Command+L at Keyboard Shortcut. If you want to lock your Mac with Keyboard Shortcut other than ⌘ Command+L, you can enter in here. Press Add if you are finished.

5. Now you can see that the same Lock Screen option at your menu bar will show the Keyboard Shortcut you just changed.

This works in almost every case. Sometimes, the app will have ⌘ Command+L as its Keyboard Shortcut. One example is the System Preferences app that uses the ⌘ Command+L as going to the Lobby of System Preferences. I have never seen any other cases where ⌘ Command+L doesn't work as expected.