Lock Your Mac’s Screen with a REALLY Old Keyboard

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


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"?>
 <name>PC_PAUSE to POWER</name>
 <appendix>Remaps the Pause key to the Power key</appendix>
 <autogen>__KeyToKey__ KeyCode::PC_PAUSE, KeyCode::VK_IOHIDPOSTEVENT_NX_POWER_KEY</autogen>

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



Leave a Reply