Skip to content

Instantly share code, notes, and snippets.

@captain-blue210
Created November 22, 2025 02:08
Show Gist options
  • Select an option

  • Save captain-blue210/88df3de954a9aed381765fb0aa8d7dd5 to your computer and use it in GitHub Desktop.

Select an option

Save captain-blue210/88df3de954a9aed381765fb0aa8d7dd5 to your computer and use it in GitHub Desktop.
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Ctrl+; -> Option+Right / Ctrl+' -> Option+Left",
"manipulators": [
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": ["control", "shift"]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["option", "shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": ["control", "shift"]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["option", "shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["option"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["option"]
}
],
"type": "basic"
}
]
},
{
"description": "Ctrl+p/Ctrl+n to arrow up/down",
"manipulators": [
{
"from": {
"key_code": "p",
"modifiers": { "mandatory": ["control", "shift"] }
},
"to": [{
"key_code": "up_arrow",
"modifiers": ["shift"]
}],
"type": "basic"
},
{
"from": {
"key_code": "n",
"modifiers": { "mandatory": ["control", "shift"] }
},
"to": [{
"key_code": "down_arrow",
"modifiers": ["shift"]
}],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": { "mandatory": ["control"] }
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "n",
"modifiers": { "mandatory": ["control"] }
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
}
]
},
{
"description": "Map ctrl+b/ctrl+f to left/right arrow",
"manipulators": [
{
"from": {
"key_code": "b",
"modifiers": { "mandatory": ["control", "shift"] }
},
"to": [{
"key_code": "left_arrow",
"modifiers": ["shift"]
}],
"type": "basic"
},
{
"from": {
"key_code": "f",
"modifiers": { "mandatory": ["control", "shift"] }
},
"to": [{
"key_code": "right_arrow",
"modifiers": ["shift"]
}],
"type": "basic"
},
{
"from": {
"key_code": "b",
"modifiers": { "mandatory": ["control"] }
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "f",
"modifiers": { "mandatory": ["control"] }
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
},
{
"description": "コマンドキーを単体で押したときに、英数・かなキーを送信する。(左コマンドキーは英数、右コマンドキーはかな) (rev 3)",
"manipulators": [
{
"from": {
"key_code": "left_command",
"modifiers": { "optional": ["any"] }
},
"parameters": { "basic.to_if_held_down_threshold_milliseconds": 100 },
"to": [
{
"key_code": "left_command",
"lazy": true
}
],
"to_if_alone": [{ "key_code": "japanese_eisuu" }],
"to_if_held_down": [{ "key_code": "left_command" }],
"type": "basic"
},
{
"from": {
"key_code": "right_command",
"modifiers": { "optional": ["any"] }
},
"parameters": { "basic.to_if_held_down_threshold_milliseconds": 100 },
"to": [
{
"key_code": "right_command",
"lazy": true
}
],
"to_if_alone": [{ "key_code": "japanese_kana" }],
"to_if_held_down": [{ "key_code": "right_command" }],
"type": "basic"
}
]
}
]
},
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment