Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Created August 8, 2026 23:42
Show Gist options
  • Select an option

  • Save james2doyle/0fa35e72547c6c2caeb7533c02545e7e to your computer and use it in GitHub Desktop.

Select an option

Save james2doyle/0fa35e72547c6c2caeb7533c02545e7e to your computer and use it in GitHub Desktop.
Input-remapper-2 config for mac-like keyboard navigation. Ctrl is remapped to LeftMeta. Put in $XDG_CONFIG_HOME/input-remapper-2/presets/{YOUR_DEVICE}/Maclike.json
[
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 105, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_HOME",
"name": "Ctrl+Left (start of line)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 106, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_END",
"name": "Ctrl+Right (end of line)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 42, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 105, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Shift_L+KEY_HOME",
"name": "Ctrl+Shift+Left (select to line start)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 42, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 106, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Shift_L+KEY_END",
"name": "Ctrl+Shift+Right (select to line end)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 103, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+KEY_HOME",
"name": "Ctrl+Up (start of document)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 108, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+KEY_END",
"name": "Ctrl+Down (end of document)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 42, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 103, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Shift_L+Control_L+KEY_HOME",
"name": "Ctrl+Shift+Up (select to doc start)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 42, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 108, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Shift_L+Control_L+KEY_END",
"name": "Ctrl+Shift+Down (select to doc end)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 14, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "modify(Shift_L, key(KEY_HOME)).key(KEY_DELETE)",
"name": "Ctrl+Backspace (delete to line start)",
"mapping_type": "key_macro",
"macro_key_sleep_ms": 10
},
{
"input_combination": [
{"type": 1, "code": 125, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 111, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "modify(Shift_L, key(KEY_END)).key(KEY_DELETE)",
"name": "Ctrl+Delete (delete to line end)",
"mapping_type": "key_macro",
"macro_key_sleep_ms": 10
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 105, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+KEY_LEFT",
"name": "Alt+Left (word left)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 106, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+KEY_RIGHT",
"name": "Alt+Right (word right)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 42, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 105, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+Shift_L+KEY_LEFT",
"name": "Alt+Shift+Left (select word left)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 42, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 106, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+Shift_L+KEY_RIGHT",
"name": "Alt+Shift+Right (select word right)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 103, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+KEY_UP",
"name": "Alt+Up (paragraph up)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 108, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+KEY_DOWN",
"name": "Alt+Down (paragraph down)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 42, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 103, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+Shift_L+KEY_UP",
"name": "Alt+Shift+Up (select paragraph up)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 42, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 108, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+Shift_L+KEY_DOWN",
"name": "Alt+Shift+Down (select paragraph down)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 14, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+BackSpace",
"name": "Alt+Backspace (delete word back)",
"mapping_type": "key_macro"
},
{
"input_combination": [
{"type": 1, "code": 56, "origin_hash": "4790f6e20b87c369dcfe985187897b13"},
{"type": 1, "code": 111, "origin_hash": "4790f6e20b87c369dcfe985187897b13"}
],
"target_uinput": "keyboard",
"output_symbol": "Control_L+KEY_DELETE",
"name": "Alt+Delete (delete word forward)",
"mapping_type": "key_macro"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment