Skip to content

Instantly share code, notes, and snippets.

@styxyang
Last active July 26, 2022 03:36
Show Gist options
  • Save styxyang/dbddff8214a05d29da54 to your computer and use it in GitHub Desktop.
Save styxyang/dbddff8214a05d29da54 to your computer and use it in GitHub Desktop.
This is a Karabiner configuration to get NumLock work on OS X the same way as PC
<!-- Get NumLock on keypad to work on osx for G80-3494, Realforce and so on -->
<!-- By https://groups.google.com/d/msg/osx-karabiner/-2ns5XVXXdQ/kDGIKVSztjwJ -->
<item>
<name>Map NumLock to OSX NumLock function</name>
<identifier>private.pc_numlock_to_mac_numlock</identifier>
<autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_IOHIKEYBOARD_TOGGLE_NUMLOCK</autogen>
</item>
@gsdefender
Copy link

gsdefender commented Apr 24, 2017

For newbies like myself: the stanza is to be put in private.xml. Here's how to do that.

  1. Open Karabiner, click on the "Misc & Uninstall" tab.
  2. Click on "Open private.xml" button besides "Custom Setting". A Finder window will open on a folder containing private.xml.
  3. Open the file with a text editor, then put the stanza inside the stanza you will already find in the file. Save the file.
  4. Go back to Karabiner, click on "Change Key" tab, then click "Reload XML" button.

If you try to search for "Map NumLock to OSX NumLock function" (the first characters will suffice) you will find the setting ready to be enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment