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"?>
<root>


 <item>
 <name>Windows Logout</name>
 <identifier>private.windows_logout</identifier>
 <autogen>__KeyToKey__ KeyCode::L, ModifierFlag::COMMAND_L, KeyCode::VK_CONSUMERKEY_EJECT, ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L </autogen>
 </item>


</root>

I'm a 31 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.