Skip to content

Instantly share code, notes, and snippets.

@szkrd
Last active August 29, 2015 14:24
Show Gist options
  • Save szkrd/6fa0ee155038bd5599ea to your computer and use it in GitHub Desktop.
Save szkrd/6fa0ee155038bd5599ea to your computer and use it in GitHub Desktop.
karabiner Hungarian
<?xml version="1.0"?>
<root>
<!--
do not forget to flip the right command with the right alt:
Command_R to Option_R
Option_R to Command_R
-->
<vkchangeinputsourcedef>
<name>KeyCode::VK_CHANGE_INPUTSOURCE_TO_EN_US</name>
<inputsourceid_equal>com.apple.keylayout.US</inputsourceid_equal>
</vkchangeinputsourcedef>
<vkchangeinputsourcedef>
<name>KeyCode::VK_CHANGE_INPUTSOURCE_TO_HU_HU</name>
<inputsourceid_equal>com.apple.keylayout.Hungarian</inputsourceid_equal>
</vkchangeinputsourcedef>
<inputsourcedef>
<name>EN_US</name>
<inputsourceid_prefix>com.apple.keylayout.US</inputsourceid_prefix>
</inputsourcedef>
<inputsourcedef>
<name>HU_HU</name>
<inputsourceid_prefix>com.apple.keylayout.Hungarian</inputsourceid_prefix>
</inputsourcedef>
<!-- en 2 hun -->
<item>
<name>En2Hun q backslash (alt+q)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_q_to_backslash</identifier>
<autogen>
__KeyToKey__
KeyCode::Q, ModifierFlag::OPTION_R,
KeyCode::BACKSLASH
</autogen>
</item>
<item>
<name>En2Hun w pipe (alt+w)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_w_to_verticalbar</identifier>
<autogen>
__KeyToKey__
KeyCode::W, ModifierFlag::OPTION_R,
KeyCode::BACKSLASH, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun zero (danish dollar to zero)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.paragraph_to_zero</identifier>
<autogen>
__KeyToKey__
KeyCode::DANISH_DOLLAR,
KeyCode::KEY_0
</autogen>
</item>
<item>
<name>En2Hun lower than (alt+backquote)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_backquote_to_lt</identifier>
<autogen>
__KeyToKey__
KeyCode::BACKQUOTE, ModifierFlag::OPTION_R,
KeyCode::COMMA, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun greater than (alt+z)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_z_to_gt</identifier>
<autogen>
__KeyToKey__
KeyCode::Z, ModifierFlag::OPTION_R,
KeyCode::DOT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun bracket left (alt+f)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_f_to_leftbracket</identifier>
<autogen>
__KeyToKey__
KeyCode::F, ModifierFlag::OPTION_R,
KeyCode::BRACKET_LEFT
</autogen>
</item>
<item>
<name>En2Hun bracket right (alt+g)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_g_to_rightbracket</identifier>
<autogen>
__KeyToKey__
KeyCode::G, ModifierFlag::OPTION_R,
KeyCode::BRACKET_RIGHT
</autogen>
</item>
<item>
<name>En2Hun dollar (alt+colon)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_colon_to_dollar</identifier>
<autogen>
__KeyToKey__
KeyCode::SEMICOLON, ModifierFlag::OPTION_R,
KeyCode::KEY_4, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun asterisk (alt+slash)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_slash_to_asterisk</identifier>
<autogen>
__KeyToKey__
KeyCode::SLASH, ModifierFlag::OPTION_R,
KeyCode::KEY_8, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun tilde (alt+1)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_one_tilde</identifier>
<autogen>
__KeyToKey__
KeyCode::KEY_1, ModifierFlag::OPTION_R,
KeyCode::BACKQUOTE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun circumflex (alt+3)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_three_circ</identifier>
<autogen>
__KeyToKey__
KeyCode::KEY_3, ModifierFlag::OPTION_R,
KeyCode::KEY_6, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun backtick (alt+7)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_seven_backtick</identifier>
<autogen>
__KeyToKey__
KeyCode::KEY_7, ModifierFlag::OPTION_R,
KeyCode::BACKQUOTE
</autogen>
</item>
<!-- x-c-v-b-n -->
<item>
<name>En2Hun hashmark (alt+x)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_x_to_hashmark</identifier>
<autogen>
__KeyToKey__
KeyCode::X, ModifierFlag::OPTION_R,
KeyCode::KEY_3, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun ampersand (alt+c)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_c_to_ampersand</identifier>
<autogen>
__KeyToKey__
KeyCode::C, ModifierFlag::OPTION_R,
KeyCode::KEY_7, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun at (alt+v)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_v_to_atsign</identifier>
<autogen>
__KeyToKey__
KeyCode::V, ModifierFlag::OPTION_R,
KeyCode::KEY_2, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun curly left (alt+b)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_b_to_leftcurly</identifier>
<autogen>
__KeyToKey__
KeyCode::B, ModifierFlag::OPTION_R,
KeyCode::BRACKET_LEFT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>En2Hun curly right (alt+n)</name>
<inputsource_only>EN_US</inputsource_only>
<identifier>private.right_option_b_to_rightcurly</identifier>
<autogen>
__KeyToKey__
KeyCode::N, ModifierFlag::OPTION_R,
KeyCode::BRACKET_RIGHT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<!-- ============================================== -->
<!-- better hun -->
<item>
<name>Better Hun backslash (alt+q)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.bhu_right_option_q_to_backslash</identifier>
<autogen>
__KeyToKey__
KeyCode::Q, ModifierFlag::OPTION_R,
KeyCode::MINUS, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun pipe (alt+w)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.bhu_right_option_w_to_pipe</identifier>
<autogen>
__KeyToKey__
KeyCode::W, ModifierFlag::OPTION_R,
KeyCode::BACKQUOTE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun bracket left (alt+f)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.bhu_right_option_f_to_leftbracket</identifier>
<autogen>
__KeyToKey__
KeyCode::F, ModifierFlag::OPTION_R,
KeyCode::KEY_8, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun bracket right (alt+g)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.bhu_right_option_g_to_rightbracket</identifier>
<autogen>
__KeyToKey__
KeyCode::G, ModifierFlag::OPTION_R,
KeyCode::KEY_8, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun hashmark (alt+x)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_x_to_hashmark</identifier>
<autogen>
__KeyToKey__
KeyCode::X, ModifierFlag::OPTION_R,
KeyCode::KEY_3, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION|MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<item>
<name>Better Hun ampersand (alt+c)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_c_to_ampersand</identifier>
<autogen>
__KeyToKey__
KeyCode::C, ModifierFlag::OPTION_R,
KeyCode::KEY_1, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun at (alt+v)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_v_to_atsign</identifier>
<autogen>
__KeyToKey__
KeyCode::V, ModifierFlag::OPTION_R,
KeyCode::Q, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun curly left (alt+b)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_b_to_leftcurly</identifier>
<autogen>
__KeyToKey__
KeyCode::B, ModifierFlag::OPTION_R,
KeyCode::KEY_7, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun curly right (alt+n)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_b_to_rightcurly</identifier>
<autogen>
__KeyToKey__
KeyCode::N, ModifierFlag::OPTION_R,
KeyCode::KEY_0, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun dollar (alt+é)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_eacute_dollarsign</identifier>
<autogen>
__KeyToKey__
KeyCode::SEMICOLON, ModifierFlag::OPTION_R,
KeyCode::KEY_4, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun semicolon (alt+,)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_dot_semicolon</identifier>
<autogen>
__KeyToKey__
KeyCode::COMMA, ModifierFlag::OPTION_R,
KeyCode::DOT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun asterisk (alt+minus)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_shift_comma_asterisk</identifier>
<autogen>
__KeyToKey__
KeyCode::SLASH, ModifierFlag::OPTION_R,
KeyCode::COMMA, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION|MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT
</autogen>
</item>
<!-- ~ ^ ` -->
<item>
<name>Better Hun tilde (alt+1)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_one_tilde</identifier>
<autogen>
__KeyToKey__
KeyCode::KEY_1, ModifierFlag::OPTION_R,
KeyCode::BRACKET_RIGHT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun circumflex (alt+3)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_three_circ</identifier>
<autogen>
__KeyToKey__
KeyCode::KEY_3, ModifierFlag::OPTION_R,
KeyCode::QUOTE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
<item>
<name>Better Hun backtick (alt+7)</name>
<inputsource_only>HU_HU</inputsource_only>
<identifier>private.brhu_right_option_seven_backtick</identifier>
<autogen>
__KeyToKey__
KeyCode::KEY_7, ModifierFlag::OPTION_R,
KeyCode::BACKSLASH, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment