Skip to content

Instantly share code, notes, and snippets.

@bertrandom
Created August 18, 2016 17:11
Show Gist options
  • Save bertrandom/e52c24ebbd2d03655ce17af9d626f1e3 to your computer and use it in GitHub Desktop.
Save bertrandom/e52c24ebbd2d03655ce17af9d626f1e3 to your computer and use it in GitHub Desktop.
Karabiner config to set WASD keyboard F13 to display sleep
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>My_Keyboard_VendorID</vendorname>
<vendorid>0x04d9</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>My_Target_Keyboard_ProductID</productname>
<productid>0x0269</productid>
</deviceproductdef>
<item>
<name>Change F13 key to sleep</name>
<identifier>private.F13_hack</identifier>
<block>
<!-- change F13 key to sleep -->
<device_only>
DeviceVendor::My_Keyboard_VendorID,
DeviceProduct::My_Target_Keyboard_ProductID
</device_only>
<autogen>__KeyToKey__ KeyCode::F13, KeyCode::VK_CONSUMERKEY_EJECT, ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L</autogen>
</block>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment