Skip to content

Instantly share code, notes, and snippets.

@oaustegard
Forked from rootscript/private.xml
Last active May 26, 2020 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oaustegard/9fd4ae08c4f5e9ca0a95bc608b248044 to your computer and use it in GitHub Desktop.
Save oaustegard/9fd4ae08c4f5e9ca0a95bc608b248044 to your computer and use it in GitHub Desktop.
Karabiner private.xml for non-Apple keyboard to toggle Target Display Mode
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>Dell</vendorname>
<vendorid>16700</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>Dell USB Keyboard</productname>
<productid>8195</productid>
</deviceproductdef>
<item>
<name>Cmd + F2 for Target Display Mode (Dell)</name>
<identifier>private.dell_usb_toggle_TMD</identifier>
<device_only>DeviceVendor::Dell, DeviceProduct::Dell USB Keyboard</device_only>
<!--Target Display Mode-->
<autogen>__KeyToKey__ KeyCode::F2, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_UP, ModifierFlag::COMMAND_L</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment