Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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