Mac OS

Windows+L Lock Screen Shortcut on Mac

Do you want a nice fast way to lock your screen on Mac OS X?

Press Apple+L (or Windows+L if you have a PC keyboard) and you will be taken to the lock screen with this code snippet below.

You need to have KeyRemap4MacBook installed and go to Preferences > Misc & Uninstall > Open private.xml

Add this to the private.xml file, save and press ReloadXML on the main page of KeyRemap4MacBook

<?xml version="1.0"?>

 <name>Windows Logout</name>
 <autogen>__KeyToKey__ KeyCode::L, ModifierFlag::COMMAND_L, KeyCode::VK_CONSUMERKEY_EJECT, ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L </autogen>


I'm a 33 year old UIUC Computer Engineer building mobile apps, websites and hardware integrations with an interest in 3D printing, biotechnology and Arduinos.

View Comments
There are currently no comments.

This site uses Akismet to reduce spam. Learn how your comment data is processed.