Skip to content

Instantly share code, notes, and snippets.

@fkgruber
Created October 3, 2018 17:46
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 fkgruber/9c39fa2e8b46bb7648a2efe74d1ff398 to your computer and use it in GitHub Desktop.
Save fkgruber/9c39fa2e8b46bb7648a2efe74d1ff398 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0"?>
<root>
<appdef>
<appname>vnc</appname>
<equal>com.realvnc.vncviewer</equal>
</appdef>
<appdef>
<appname>emacs</appname>
<equal>org.gnu.Emacs</equal>
</appdef>
<appdef>
<appname>emacsX11</appname>
<equal>org.macosforge.xquartz.X11</equal>
</appdef>
<appdef>
<appname>terminal</appname>
<equal>com.apple.Terminal</equal>
</appdef>
<item>
<name>Space to Alt in App VNC and Emacs</name>
<identifier>private.app_vnc_space_meta</identifier>
<only>vnc, emacs, emacsX11, terminal</only>
<autogen>
__KeyOverlaidModifier__
KeyCode::SPACE,
KeyCode::OPTION_L,
KeyCode::SPACE,
</autogen>
<block>
<modifier_only>ModifierFlag::OPTION_L</modifier_only>
<autogen>__BlockUntilKeyUp__ KeyCode::SPACE</autogen>
</block>
</item>
<item>
<name>Control+PNBF to Up/Down/Left/Right except vnc and emacs</name>
<identifier>emacs mode 1 not vnc or emacs</identifier>
<appendix>(+ Control+AE to Command+Left/Right)</appendix>
<appendix>(+ Command+Control+PNBF to Shift+Up/Down/Left/Right)</appendix>
<appendix>(+ Command+Control+AE to Shift+Command+Left/Right)</appendix>
<appendix>(+ retain Control+Shift+PNBF)</appendix>
<appendix>(+ retain Control+Shift+AE)</appendix>
<not>terminal, vnc, emacs, emacsX11</not>
<include path="{{ ENV_Karabiner_Resources }}/include/checkbox/snippets/emacsmode_controlPNBF_ex.xml" />
</item>
<item>
<name>Option+BF to Option+Left/Right</name>
<identifier>option.emacsmode_optionBF_not_emacs</identifier>
<not>vnc, emacs, emacsX11</not>
<modifier_not>
ModifierFlag::COMMAND_L, ModifierFlag::COMMAND_R,
ModifierFlag::CONTROL_L, ModifierFlag::CONTROL_R,
</modifier_not>
<autogen>
__KeyToKey__
KeyCode::B, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L,
</autogen>
<autogen>
__KeyToKey__
KeyCode::F, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L,
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment