Skip to content

Instantly share code, notes, and snippets.

@gggritso
Last active December 27, 2015 05:29
Show Gist options
  • Save gggritso/7274242 to your computer and use it in GitHub Desktop.
Save gggritso/7274242 to your computer and use it in GitHub Desktop.
A KeyRemap4Macbook file to enable fn+F1 keys on OS X with a WASD Keyboard.

Instructions

  • set key repeat delay to 200ms, and repeat to 20ms
  • enable all Fn+FX to FX remappings
  • don't remap internal keyboard, Apple keyboards or Apple's pointing devices
  • "Change F1..F19 Key & Functional Key (Brightness Control) > MacBook Series > F1, F2 to Brightness Adjust, and so on
  • Application Key to Fn
<?xml version="1.0"?>
<root>
<item>
<name>Fn+F1 to F1</name>
<identifier>private.app_f1_f1</identifier>
<autogen>
__KeyToKey__
KeyCode::F1, ModifierFlag::FN,
KeyCode::F1
</autogen>
</item>
<item>
<name>Fn+F2 to F2</name>
<identifier>private.app_f2_f2</identifier>
<autogen>
__KeyToKey__
KeyCode::F2, ModifierFlag::FN,
KeyCode::F2
</autogen>
</item>
<item>
<name>Fn+F3 to F3</name>
<identifier>private.app_f3_f3</identifier>
<autogen>
__KeyToKey__
KeyCode::F3, ModifierFlag::FN,
KeyCode::F3
</autogen>
</item>
<item>
<name>Fn+F4 to F4</name>
<identifier>private.app_f4_f4</identifier>
<autogen>
__KeyToKey__
KeyCode::F4, ModifierFlag::FN,
KeyCode::F4
</autogen>
</item>
<item>
<name>Fn+F5 to F5</name>
<identifier>private.app_f5_f5</identifier>
<autogen>
__KeyToKey__
KeyCode::F5, ModifierFlag::FN,
KeyCode::F5
</autogen>
</item>
<item>
<name>Fn+F6 to F6</name>
<identifier>private.app_f6_f6</identifier>
<autogen>
__KeyToKey__
KeyCode::F6, ModifierFlag::FN,
KeyCode::F6
</autogen>
</item>
<item>
<name>Fn+F7 to F7</name>
<identifier>private.app_f7_f7</identifier>
<autogen>
__KeyToKey__
KeyCode::F7, ModifierFlag::FN,
KeyCode::F7
</autogen>
</item>
<item>
<name>Fn+F8 to F8</name>
<identifier>private.app_f8_f8</identifier>
<autogen>
__KeyToKey__
KeyCode::F8, ModifierFlag::FN,
KeyCode::F8
</autogen>
</item>
<item>
<name>Fn+F9 to F9</name>
<identifier>private.app_f9_f9</identifier>
<autogen>
__KeyToKey__
KeyCode::F9, ModifierFlag::FN,
KeyCode::F9
</autogen>
</item>
<item>
<name>Fn+F10 to F10</name>
<identifier>private.app_f10_f10</identifier>
<autogen>
__KeyToKey__
KeyCode::F10, ModifierFlag::FN,
KeyCode::F10
</autogen>
</item>
<item>
<name>Fn+F11 to F11</name>
<identifier>private.app_f11_f11</identifier>
<autogen>
__KeyToKey__
KeyCode::F11, ModifierFlag::FN,
KeyCode::F11
</autogen>
</item>
<item>
<name>Fn+F12 to F12</name>
<identifier>private.app_f12_f12</identifier>
<autogen>
__KeyToKey__
KeyCode::F12, ModifierFlag::FN,
KeyCode::F12
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment