Last active
May 17, 2021 01:58
-
-
Save kgmyshin/d15ce63d9f2c3c2e563a to your computer and use it in GitHub Desktop.
karabiner private.xml
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"?> | |
<root> | |
<!-- for RealForce --> | |
<devicevendordef> | |
<vendorname>RealForce_VendorID</vendorname> | |
<vendorid>0x0853</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>RealForce_ProductID</productname> | |
<productid>0x0200</productid> | |
</deviceproductdef> | |
<item> | |
<name>For RealForce Settings</name> | |
<appendix>For RealForce Settings</appendix> | |
<identifier>private.for_RealForce</identifier> | |
<block> | |
<device_only> | |
DeviceVendor::RealForce_VendorID, | |
DeviceProduct::RealForce_ProductID | |
</device_only> | |
<!-- Command_L to Option_L --> | |
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen> | |
<!-- Option_L to Command_L --> | |
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen> | |
<!-- Fn+F7,F8,F9 to Music Controls --> | |
<autogen>__KeyToKey__ KeyCode::F7, ModifierFlag::FN, ConsumerKeyCode::MUSIC_PREV</autogen> | |
<autogen>__KeyToKey__ KeyCode::F8, ModifierFlag::FN, ConsumerKeyCode::MUSIC_PLAY</autogen> | |
<autogen>__KeyToKey__ KeyCode::F9, ModifierFlag::FN, ConsumerKeyCode::MUSIC_NEXT</autogen> | |
<!-- Pause/Break Key to Eject --> | |
<autogen>__KeyToKey__ KeyCode::PC_PAUSE, ConsumerKeyCode::EJECT</autogen> | |
<!-- Application Key to Fn --> | |
<autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::FN</autogen> | |
<!-- Control_L+hjkl to Left/Down/Up/Right --> | |
<autogen>__KeyToKey__ KeyCode::H, ModifierFlag::CONTROL_L, KeyCode::CURSOR_LEFT</autogen> | |
<autogen>__KeyToKey__ KeyCode::J, ModifierFlag::CONTROL_L, KeyCode::CURSOR_DOWN</autogen> | |
<autogen>__KeyToKey__ KeyCode::K, ModifierFlag::CONTROL_L, KeyCode::CURSOR_UP</autogen> | |
<autogen>__KeyToKey__ KeyCode::L, ModifierFlag::CONTROL_L, KeyCode::CURSOR_RIGHT</autogen> | |
<!-- Fn+F1,F2 to Brightness Adjust --> | |
<autogen>__KeyToKey__ KeyCode::F1, ModifierFlag::FN, ConsumerKeyCode::BRIGHTNESS_DOWN</autogen> | |
<autogen>__KeyToKey__ KeyCode::F2, ModifierFlag::FN, ConsumerKeyCode::BRIGHTNESS_UP</autogen> | |
<!-- Fn+F3,F4 to Mission Control/Launchpad --> | |
<autogen>__KeyToKey__ KeyCode::F3, ModifierFlag::FN, KeyCode::MISSION_CONTROL</autogen> | |
<autogen>__KeyToKey__ KeyCode::F4, ModifierFlag::FN, KeyCode::LAUNCHPAD</autogen> | |
<!-- Fn+F10,F11,F12 to Speaker Controls --> | |
<autogen>__KeyToKey__ KeyCode::F10, ModifierFlag::FN, ConsumerKeyCode::VOLUME_MUTE</autogen> | |
<autogen>__KeyToKey__ KeyCode::F11, ModifierFlag::FN, ConsumerKeyCode::VOLUME_DOWN</autogen> | |
<autogen>__KeyToKey__ KeyCode::F12, ModifierFlag::FN, ConsumerKeyCode::VOLUME_UP</autogen> | |
<!-- Backquote(`) to KANA/EISUU (toggle) --> | |
<autogen>__KeyToKey__ KeyCode::BACKQUOTE, KeyCode::VK_JIS_TOGGLE_EISUU_KANA</autogen> | |
<!-- Fn+F5,F6 to Keyboard Backlit Adjust --> | |
<autogen>__KeyToKey__ KeyCode::F5, ModifierFlag::FN, ConsumerKeyCode::KEYBOARDLIGHT_LOW</autogen> | |
<autogen>__KeyToKey__ KeyCode::F6, ModifierFlag::FN, ConsumerKeyCode::KEYBOARDLIGHT_HIGH</autogen> | |
</block> | |
</item> | |
<!-- for MBP --> | |
<devicevendordef> | |
<vendorname>MB_VendorID</vendorname> | |
<vendorid>0x05ac</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>MBP_ProductID</productname> | |
<productid>0x0273</productid> | |
</deviceproductdef> | |
<item> | |
<name>MBP Settings</name> | |
<appendix>MBP Settings</appendix> | |
<identifier>private.for_MBP</identifier> | |
<block> | |
<device_only> | |
DeviceVendor::MB_VendorID, | |
DeviceProduct::MBP_ProductID | |
</device_only> | |
<!-- Control_L+hjkl to Left/Down/Up/Right --> | |
<autogen>__KeyToKey__ KeyCode::H, ModifierFlag::CONTROL_L, KeyCode::CURSOR_LEFT</autogen> | |
<autogen>__KeyToKey__ KeyCode::J, ModifierFlag::CONTROL_L, KeyCode::CURSOR_DOWN</autogen> | |
<autogen>__KeyToKey__ KeyCode::K, ModifierFlag::CONTROL_L, KeyCode::CURSOR_UP</autogen> | |
<autogen>__KeyToKey__ KeyCode::L, ModifierFlag::CONTROL_L, KeyCode::CURSOR_RIGHT</autogen> | |
</block> | |
</item> | |
<!-- for MBA --> | |
<deviceproductdef> | |
<productname>MBA_ProductID</productname> | |
<productid>0x0291</productid> | |
</deviceproductdef> | |
<item> | |
<name>MBA Settings</name> | |
<appendix>MBA Settings</appendix> | |
<identifier>private.for_MBA</identifier> | |
<block> | |
<device_only> | |
DeviceVendor::MB_VendorID, | |
DeviceProduct::MBA_ProductID | |
</device_only> | |
<!-- Control_L+hjkl to Left/Down/Up/Right --> | |
<autogen>__KeyToKey__ KeyCode::H, ModifierFlag::CONTROL_L, KeyCode::CURSOR_LEFT</autogen> | |
<autogen>__KeyToKey__ KeyCode::J, ModifierFlag::CONTROL_L, KeyCode::CURSOR_DOWN</autogen> | |
<autogen>__KeyToKey__ KeyCode::K, ModifierFlag::CONTROL_L, KeyCode::CURSOR_UP</autogen> | |
<autogen>__KeyToKey__ KeyCode::L, ModifierFlag::CONTROL_L, KeyCode::CURSOR_RIGHT</autogen> | |
</block> | |
</item> | |
</root> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment