Skip to content

Instantly share code, notes, and snippets.

@mherdeg
Created October 3, 2016 06:02
Show Gist options
  • Save mherdeg/4eca69637d176bc81ea19207b91135cd to your computer and use it in GitHub Desktop.
Save mherdeg/4eca69637d176bc81ea19207b91135cd to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<root>
<appdef>
<appname>TERMINAL</appname>
<equal>com.apple.Terminal</equal>
</appdef>
<windownamedef>
<name>Nethack</name>
<regex>^.*Nethack.*$</regex>
</windownamedef>
<item>
<name>Send Arrow Keys as HJKL when in NetHack</name>
<identifier>private.arrow_keys_as_hjkl_in_nethack</identifier>
<only>TERMINAL</only>
<windowname_only>Nethack</windowname_only>
<autogen>__KeyToKey__ KeyCode::CURSOR_UP, KeyCode::K</autogen>
<autogen>__KeyToKey__ KeyCode::CURSOR_DOWN, KeyCode::J</autogen>
<autogen>__KeyToKey__ KeyCode::CURSOR_LEFT, KeyCode::H</autogen>
<autogen>__KeyToKey__ KeyCode::CURSOR_RIGHT, KeyCode::L</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment