Skip to content

Instantly share code, notes, and snippets.

@fgeller
Last active September 10, 2017 22:46
Show Gist options
  • Save fgeller/e98385431da58b38e193970a759c8143 to your computer and use it in GitHub Desktop.
Save fgeller/e98385431da58b38e193970a759c8143 to your computer and use it in GitHub Desktop.
{
"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": 150
},
"rules": [
{
"description": "fn + as = cmd+[]",
"manipulators": [
{
"from": {"key_code": "a", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "open_bracket", "modifiers": ["left_command"]}],
"type": "basic"
},
{
"from": {"key_code": "s", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "close_bracket", "modifiers": ["left_command"]}],
"type": "basic"
}
]
},
{
"description": "fn + neoi = arrow keys",
"manipulators": [
{
"from": {"key_code": "n", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "left_arrow"}],
"type": "basic"
},
{
"from": {"key_code": "e", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "down_arrow"}],
"type": "basic"
},
{
"from": {"key_code": "o", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "up_arrow"}],
"type": "basic"
},
{
"from": {"key_code": "i", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "right_arrow"}],
"type": "basic"
}
]
},
{
"description": "fn + jkl; = arrow keys",
"manipulators": [
{
"from": {"key_code": "j", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "left_arrow"}],
"type": "basic"
},
{
"from": {"key_code": "k", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "down_arrow"}],
"type": "basic"
},
{
"from": {"key_code": "l", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "up_arrow"}],
"type": "basic"
},
{
"from": {"key_code": ";", "modifiers": {"mandatory": ["fn"]}},
"to": [{"key_code": "right_arrow"}],
"type": "basic"
}
]
},
{
"description": "Change return_or_enter to right_control. (Post return if pressed alone)",
"manipulators": [
{
"from": {"key_code": "return_or_enter", "modifiers": {"optional": ["any"]}},
"to": [{"key_code": "right_control"}],
"to_if_alone": [{"key_code": "return_or_enter"}],
"type": "basic"
}
]
},
{
"description": "Change caps_lock to left_control. (Post backspace if pressed alone)",
"manipulators": [
{
"from": {"key_code": "caps_lock", "modifiers": {"optional": ["any"]}},
"to": [{"key_code": "left_control"}],
"to_if_alone": [{"key_code": "delete_or_backspace"}],
"type": "basic"
}
]
}
]
},
"devices": [],
"fn_function_keys": [
{
"from": {"key_code": "f1"},
"to": {"key_code": "display_brightness_decrement"}
},
{
"from": {"key_code": "f2"},
"to": {"key_code": "display_brightness_increment"}
},
{
"from": {"key_code": "f3"},
"to": {"key_code": "mission_control"}
},
{
"from": {"key_code": "f4"},
"to": {"key_code": "launchpad"}
},
{
"from": {"key_code": "f5"},
"to": {"key_code": "illumination_decrement"}
},
{
"from": {"key_code": "f6"},
"to": {"key_code": "illumination_increment"}
},
{
"from": {"key_code": "f7"},
"to": {"key_code": "rewind"}
},
{
"from": {"key_code": "f8"},
"to": {"key_code": "play_or_pause"}
},
{
"from": {"key_code": "f9"},
"to": {"key_code": "fastforward"}
},
{
"from": {"key_code": "f10"},
"to": {"key_code": "mute"}
},
{
"from": {"key_code": "f11"},
"to": {"key_code": "volume_decrement"}
},
{
"from": {"key_code": "f12"},
"to": {"key_code": "volume_increment"}
}
],
"name": "Default profile",
"selected": true,
"simple_modifications": [
{
"from": {"key_code": "left_control"},
"to": {"key_code": "fn"}
}, {
"from": {"key_code": "delete_or_backspace"},
"to": {"key_code": "escape"}
}
],
"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