Created
January 6, 2015 16:40
-
-
Save mlan3/d9375aa084ff46ec3c4b to your computer and use it in GitHub Desktop.
Karabiner private.xml for non-Apple keyboard to toggle Target Display Mode
This file contains hidden or 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> | |
<devicevendordef> | |
<vendorname>LOGITECH</vendorname> | |
<vendorid>0x046d</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>LOGITECH_K811</productname> | |
<productid>0xb317</productid> | |
</deviceproductdef> | |
<item> | |
<name>Command + F2 to toggle Target Display Mode</name> | |
<appendix>Command + F2 to Command + BrightnessUp</appendix> | |
<identifier>private.logitch_K811_toggle_TMD</identifier> | |
<!-- Comment the line below to remove restriction to mapping Logitech K811 only --> | |
<device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_K811</device_only> | |
<!-- Comment the line above to remove restriction to mapping Logitech K811 only --> | |
<autogen>__KeyToKey__ KeyCode::F2, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_UP, ModifierFlag::COMMAND_L</autogen> | |
</item> | |
<item> | |
<name>Command + Mission Control to Application Exposé</name> | |
<identifier>private.logitch_K811_Command_Mission_Control_to_App_Expose</identifier> | |
<device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_K811</device_only> | |
<autogen>__KeyToKey__ KeyCode::MISSION_CONTROL, VK_COMMAND | VK_CONTROL, KeyCode::EXPOSE_ALL, ModifierFlag::CONTROL_R</autogen> | |
</item> | |
<item> | |
<name>Remap Application Exposé to Mission Control</name> | |
<identifier>private.logitch_K811_Remap_App_Expose_to_Mission_Control</identifier> | |
<device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_K811</device_only> | |
<autogen>--KeyToKey-- KeyCode::MISSION_CONTROL, ModifierFlag::CONTROL_L, KeyCode::MISSION_CONTROL</autogen> | |
</item> | |
</root> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this, just what i need for my Logitech K811 :o) The part i needed was just for Target Display Mode:
<!--Target Display Mode--> <autogen>__KeyToKey__ KeyCode::F2, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_UP, ModifierFlag::COMMAND_L</autogen>