Skip to content

Instantly share code, notes, and snippets.

@beta
Last active February 25, 2020 02:55
Show Gist options
  • Save beta/2b359c3562da5f6afa74 to your computer and use it in GitHub Desktop.
Save beta/2b359c3562da5f6afa74 to your computer and use it in GitHub Desktop.
My Karabiner private configurations for ikbc Poker II.
<?xml version="1.0"?>
<root>
<item>
<name>Directions</name>
<identifier>private.directions</identifier>
<autogen>
__KeyToKey__
KeyCode::I, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::CURSOR_UP
</autogen>
<autogen>
__KeyToKey__
KeyCode::K, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::CURSOR_DOWN
</autogen>
<autogen>
__KeyToKey__
KeyCode::J, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::CURSOR_LEFT
</autogen>
<autogen>
__KeyToKey__
KeyCode::L, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::CURSOR_RIGHT
</autogen>
<autogen>
__KeyToKey__
KeyCode::U, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::HOME
</autogen>
<autogen>
__KeyToKey__
KeyCode::O, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::END
</autogen>
<autogen>
__KeyToKey__
KeyCode::BRACKET_LEFT, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::PAGEUP
</autogen>
<autogen>
__KeyToKey__
KeyCode::BRACKET_RIGHT, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::PAGEDOWN
</autogen>
</item>
<item>
<name>Switch windows</name>
<identifier>private.switch.windows</identifier>
<autogen>
__KeyToKey__
KeyCode::ESCAPE, ModifierFlag::COMMAND_L,
KeyCode::BACKQUOTE, ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>` and ~</name>
<identifier>private.wave</identifier>
<autogen>
__KeyToKey__
KeyCode::ESCAPE, ModifierFlag::SHIFT_L,
KeyCode::BACKQUOTE, ModifierFlag::SHIFT_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::ESCAPE, ModifierFlag::CONTROL_L,
KeyCode::BACKQUOTE
</autogen>
</item>
</root>
@beta
Copy link
Author

beta commented Aug 4, 2015

ikbc Poker II has no direction keys and the backquote key. I use Karabiner with some configurations to emulate the keys.

  • control + command + I / J / K / L = direction keys
  • control + command + U / P = home / end
  • control + command + [ / ] = page up / page down
  • shift + esc = ~
  • control + esc = `
  • command + esc = switching between windows of an app ( command + ` )

@beta
Copy link
Author

beta commented Aug 4, 2015

BTW, I swapped the alt and the command keycaps to match Mac's keyboard. Some configurations to System Preferences > Keyboard > Modifier Keys will make this swap work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment