Skip to content

Instantly share code, notes, and snippets.

@copperwalls
Last active September 8, 2017 06:29
Show Gist options
  • Save copperwalls/04984aef4c7c5347c8e184c3cf626578 to your computer and use it in GitHub Desktop.
Save copperwalls/04984aef4c7c5347c8e184c3cf626578 to your computer and use it in GitHub Desktop.
Make the CM Storm (Side print—replaced with blank keys) behave like the HHKB Pro 2 Blank keyboard
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 1000
},
"rules": [
{
"description": "HHKB Arrow Mode (fn + semicolon/slash/open_bracket/quote to arrow keys, etc)",
"manipulators": [
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"option",
"command",
"shift"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"option",
"command",
"shift"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"option",
"command",
"shift"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"option",
"command",
"shift"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"option"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
},
{
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock",
"option"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "home"
}
],
"type": "basic"
},
{
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "end"
}
],
"type": "basic"
}
]
},
{
"description": "HHKB Media Key Mode (fn + asdf to Volume down/up/mute, eject)",
"manipulators": [
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "volume_decrement"
}
],
"type": "basic"
},
{
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "volume_increment"
}
],
"type": "basic"
},
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "mute"
}
],
"type": "basic"
},
{
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "eject"
}
],
"type": "basic"
}
]
},
{
"description": "Map fn + i, o, p to F13, F14, F15.",
"manipulators": [
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f13"
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f14"
}
],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f15"
}
],
"type": "basic"
}
]
},
{
"description": "Vi Mode [D as Trigger Key] (recommended)",
"manipulators": [
{
"from": {
"key_code": "d",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"set_variable": {
"name": "vi_mode",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "vi_mode",
"value": 0
}
}
],
"to_if_alone": [
{
"key_code": "d"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "h",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "j",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "k",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "l",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "f",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "fn"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "home"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "end"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "0",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"left_control"
]
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
},
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "4",
"modifiers": {
"optional": [
"caps_lock",
"shift"
]
}
},
"to": [
{
"key_code": "e",
"modifiers": [
"left_control"
]
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "v",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"set_variable": {
"name": "vi_visual_mode",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "vi_visual_mode",
"value": 0
}
}
],
"to_if_alone": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "h",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_shift"
]
}
],
"to_after_key_up": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"left_shift"
]
}
],
"to_after_key_up": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"left_shift"
]
}
],
"to_after_key_up": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_shift"
]
}
],
"to_after_key_up": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "0",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_shift",
"left_command"
]
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "4",
"modifiers": {
"optional": [
"caps_lock",
"shift"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_shift",
"left_command"
]
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "b",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"to_after_key_up": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "w",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"to_after_key_up": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "open_bracket",
"modifiers": {
"optional": [
"caps_lock",
"shift"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"to_after_key_up": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "close_bracket",
"modifiers": {
"optional": [
"caps_lock",
"shift"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"to_after_key_up": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_visual_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"any": "key_code",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "return_or_enter"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "spacebar",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "spacebar"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "tab",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "tab"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "hyphen",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "hyphen"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "equal_sign",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "equal_sign"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "open_bracket",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "open_bracket"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "close_bracket",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "close_bracket"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "backslash",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "backslash"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "non_us_pound",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "non_us_pound"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "semicolon",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "semicolon"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "quote",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "quote"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "grave_accent_and_tilde"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "comma",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "comma"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "period",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "period"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "slash",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "slash"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "non_us_backslash",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "non_us_backslash"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "1",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "1"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "2",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "2"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "3",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "3"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "5",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "5"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "6",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "6"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "7",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "7"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "8",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "8"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "9",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "9"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "a",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "a"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "b",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "b"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "c",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "c"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "e",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "e"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "g",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "g"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "i",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "i"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "m",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "m"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "n",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "n"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "o",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "o"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "p",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "p"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "q",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "q"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "r",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "r"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "s",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "s"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "t",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "t"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "u",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "u"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "w",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "w"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "x",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "x"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "y",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "y"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "vi_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "z",
"modifiers": {
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "d"
},
{
"key_code": "z"
},
{
"key_code": "vk_none"
}
],
"type": "basic"
}
]
},
{
"description": "Map fn + number keys to their corresponding function keys. Only works if 'Use all F1, F2, etc. keys as standard function keys' is set under Function Keys.",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f1"
}
],
"type": "basic"
},
{
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f2"
}
],
"type": "basic"
},
{
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f3"
}
],
"type": "basic"
},
{
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f4"
}
],
"type": "basic"
},
{
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f5"
}
],
"type": "basic"
},
{
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f6"
}
],
"type": "basic"
},
{
"from": {
"key_code": "7",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f7"
}
],
"type": "basic"
},
{
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f8"
}
],
"type": "basic"
},
{
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f9"
}
],
"type": "basic"
},
{
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f10"
}
],
"type": "basic"
},
{
"from": {
"key_code": "hyphen",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f11"
}
],
"type": "basic"
},
{
"from": {
"key_code": "equal_sign",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "f12"
}
],
"type": "basic"
}
]
},
{
"description": "Use home/page_up to switch tabs in an application.",
"manipulators": [
{
"from": {
"key_code": "home",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "tab",
"modifiers": [
"left_control",
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "page_up",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "tab",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
},
{
"description": "Use end/page_down to switch application windows.",
"manipulators": [
{
"from": {
"key_code": "end",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "page_down",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"left_command",
"left_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Use right_command+h/l to switch tabs in an application.",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "tab",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "tab",
"modifiers": [
"left_control",
"left_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Use right_command+j/k to switch windows of the foreground application .",
"manipulators": [
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"left_command",
"left_shift"
]
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": {},
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 631,
"vendor_id": 1452
},
"ignore": false,
"simple_modifications": {}
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": {},
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 256,
"vendor_id": 2131
},
"ignore": false,
"simple_modifications": {}
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": {},
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 23,
"vendor_id": 9494
},
"ignore": false,
"simple_modifications": {
"backslash": "delete_or_backspace",
"caps_lock": "left_control",
"delete_forward": "grave_accent_and_tilde",
"delete_or_backspace": "backslash",
"grave_accent_and_tilde": "escape",
"help": "grave_accent_and_tilde",
"left_command": "left_option",
"left_option": "left_command",
"right_command": "right_option",
"right_control": "fn",
"right_option": "right_command"
}
}
],
"fn_function_keys": {
"f1": "display_brightness_decrement",
"f10": "mute",
"f11": "volume_decrement",
"f12": "volume_increment",
"f2": "display_brightness_increment",
"f3": "mission_control",
"f4": "launchpad",
"f5": "illumination_decrement",
"f6": "illumination_increment",
"f7": "rewind",
"f8": "play_or_pause",
"f9": "fastforward"
},
"name": "Default profile",
"selected": true,
"simple_modifications": {},
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "ansi"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment