Lock Your Mac’s Screen with a REALLY Old Keyboard

First of all: shut up. I will surrender this thing when I am dead.

20150727_103128

Secondly, you may notice that your Really Old Keyboard is missing a few keys, like “Command/Windows,” power, eject, et al. You can remap your Caps Lock key to Command in System Preferences, but if you want to lock your Mac with a keystroke, you’re out of luck. OR ARE YOU? There is a tool called Karabiner which is much more flexible than OS X’s Keyboard prefpane. Install that, go to Preferences, Misc. & Uninstall, Open Private.xml, open the file in your favorite text editor, and then make its contents this:

<?xml version="1.0"?>
 <root>
 <item>
 <name>PC_PAUSE to POWER</name>
 <appendix>Remaps the Pause key to the Power key</appendix>
 <identifier>private.map_pause_to_power</identifier>
 <autogen>__KeyToKey__ KeyCode::PC_PAUSE, KeyCode::VK_IOHIDPOSTEVENT_NX_POWER_KEY</autogen>
 </item>
 </root>

This remaps “Pause” to your Power key, which lets you Ctrl-Shift-Pause to lock your machine. HUZZAH!

 

 

Leave a Reply