Specifying Terminal-only mapping in Karabiner I am trying to remap specific Ctrl+&lt;Key&gt; combinations to Command+&lt;Key&gt; in Terminal.app using Karabiner. The following private.xml is used:

&lt;?xml version="1.0"?&gt;
&lt;root&gt;
  &lt;item&gt;
    &lt;name&gt;Swap Ctrl+S and Cmd+S&lt;/name&gt;
    &lt;identifier&gt;private.filters_cmd&lt;/identifier&gt;
    &lt;only&gt;TERMINAL&lt;/only&gt;

    &lt;autogen&gt;__KeyToKey__ KeyCode::S, ModifierFlag::COMMAND_L, KeyCode::S, ModifierFlag::CONTROL_L&lt;/autogen&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::S, ModifierFlag::COMMAND_R, KeyCode::S, ModifierFlag::CONTROL_R&lt;/autogen&gt;
  &lt;/item&gt;
&lt;/root&gt;


For now only Ctrl+S is remapped. However, it only works if no application-level filtering is set via &lt;only&gt;. And i would want those mappings to be active only in Terminal.app.

Probably there is something wrong with my definition. Can someone please advise?

I am using OS X 10.11.3.
My bad. I had to enable AXNotifier in Karabiner, and allow it access in System Preferences-&gt;Security &amp; Privacy-&gt;Accessibility. Hopefully the above will be helpful for others.

Sometimes posting a question helps resolving it by the very fact of posting it:)

UPDATE: Here is Karabiner's private.xml i'm currently using , in case someone would find it useful. It maps almost all of Ctrl+&lt;Key&gt; combinations, except for some that might still be useful (e.g. Cmd+Q, Cmd+N, Cmd+M).