Skip to content

Instantly share code, notes, and snippets.

@hayajo
Last active November 10, 2016 00:27
Show Gist options
  • Save hayajo/8405c80e141990b59ae624b17c3bce04 to your computer and use it in GitHub Desktop.
Save hayajo/8405c80e141990b59ae624b17c3bce04 to your computer and use it in GitHub Desktop.
~/Library/Application Support/Karabiner/private.xml
<?xml version="1.0"?>
<root>
<item>
<name>Option+b to Ctrl+Option+b</name>
<identifier>remap.opt_b2ctrl_opt_b</identifier>
<not>TERMINAL</not>
<autogen>
__KeyToKey__
KeyCode::B, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::B, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Option+f to Ctrl+Option+f</name>
<identifier>remap.opt_f2ctrl_opt_f</identifier>
<not>TERMINAL</not>
<autogen>
__KeyToKey__
KeyCode::F, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::F, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Ctrl+w to Option+Delete</name>
<identifier>remap.ctrl_w2opt_del</identifier>
<not>TERMINAL</not>
<autogen>
__KeyToKey__
KeyCode::W, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
KeyCode::DELETE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Ctrl+u to delete line</name>
<identifier>remap.ctrl_u2ctrl_a_ctrl_k</identifier>
<not>TERMINAL</not>
<autogen>
__KeyToKey__
KeyCode::U, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
KeyCode::A, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
KeyCode::K, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL
</autogen>
</item>
<item>
<name>Ctrl+m to enter</name>
<identifier>remap.ctrl_m2enter</identifier>
<not>TERMINAL</not>
<autogen>
__KeyToKey__
KeyCode::M, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
KeyCode::ENTER
</autogen>
</item>
</root>
@hayajo
Copy link
Author

hayajo commented Apr 14, 2016

@hayajo
Copy link
Author

hayajo commented May 19, 2016

2016-05-20 8 53 26

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