Last active
August 29, 2016 19:19
-
-
Save rob3c/a632bb583eff74b2c6923b91f2a0d385 to your computer and use it in GitHub Desktop.
Karabiner config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- https://gist.github.com/rob3c/a632bb583eff74b2c6923b91f2a0d385 --> | |
<root> | |
<appdef> | |
<appname>PARALLELS</appname> | |
<equal>com.parallels.desktop.console</equal> | |
</appdef> | |
<devicevendordef> | |
<vendorname>MACALLY</vendorname> | |
<vendorid>0x2222</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>MACALLY_MKEYE_WHITE_USB_KYBD</productname> | |
<productid>0x0016</productid> | |
</deviceproductdef> | |
<devicevendordef> | |
<vendorname>CHICONY</vendorname> | |
<vendorid>0x04f2</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>PERIBOARD_106_BLACK_USB_KYBD</productname> | |
<productid>0x0400</productid> | |
</deviceproductdef> | |
<item> | |
<name>Enable CTRL+HOME/END Windows behavior (exclude Parallels)</name> | |
<identifier>private.enable_ctrl_home_end_windows_behavior</identifier> | |
<not>PARALLELS</not> | |
<modifier_not> | |
ModifierFlag::COMMAND_L, | |
ModifierFlag::COMMAND_R, | |
ModifierFlag::OPTION_L, | |
ModifierFlag::OPTION_R, | |
</modifier_not> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::HOME, ModifierFlag::CONTROL_L, | |
KeyCode::CURSOR_UP, ModifierFlag::COMMAND_L, | |
</autogen> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::HOME, ModifierFlag::CONTROL_R, | |
KeyCode::CURSOR_UP, ModifierFlag::COMMAND_R, | |
</autogen> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::END, ModifierFlag::CONTROL_L, | |
KeyCode::CURSOR_DOWN, ModifierFlag::COMMAND_L, | |
</autogen> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::END, ModifierFlag::CONTROL_R, | |
KeyCode::CURSOR_DOWN, ModifierFlag::COMMAND_R, | |
</autogen> | |
</item> | |
<item> | |
<name>Swap Command and Option for black keyboard (exclude Parallels)</name> | |
<identifier>private.swap_command_and_option_excludeß_parallels</identifier> | |
<not>PARALLELS</not> | |
<device_only>DeviceVendor::CHICONY, DeviceProduct::PERIBOARD_106_BLACK_USB_KYBD</device_only> | |
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen> | |
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen> | |
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R</autogen> | |
<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_R</autogen> | |
</item> | |
</root> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment