Skip to content

Instantly share code, notes, and snippets.

@niteria
Last active September 5, 2015 23:02
Show Gist options
  • Save niteria/8a630b653db63cbe6804 to your computer and use it in GitHub Desktop.
Save niteria/8a630b653db63cbe6804 to your computer and use it in GitHub Desktop.
Hyper support in OSX
<?xml version="1.0"?>
<root>
<item>
<name>Remap Caps Lock to Hyper</name>
<appendix>OS X doesn't have a Hyper. This maps Caps Lock to Control + Shift + Option + Command.</appendix>
<identifier>space_cadet.caps_lock_to_hyper</identifier>
<autogen>
--KeyToKey--
KeyCode::F19,
KeyCode::COMMAND_L,
ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L
</autogen>
</item>
<item>
<name>disable_command_q if app != iTerm</name>
<identifier>disable_command_q</identifier>
<block>
<not>TERMINAL</not>
<autogen>__KeyToKey__ KeyCode::Q, VK_COMMAND | ModifierFlag::NONE,
KeyCode::VK_NONE</autogen>
</block>
</item>
<item>
<name>disable_command_w
if app != iTerm</name>
<identifier>disable_command_w</identifier>
<block>
<not>TERMINAL</not>
<autogen>__KeyToKey__ KeyCode::W, VK_COMMAND |
ModifierFlag::NONE, KeyCode::VK_NONE</autogen>
</block>
</item>
</root>

Install Karabiner and Seil

  • Copy the private.xml to Library/Application Support/Karabiner/private.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment