Skip to content

Instantly share code, notes, and snippets.

@vilhalmer
Created July 9, 2017 18:11
Show Gist options
  • Save vilhalmer/2112c846f79a2a8ee30329be481b425c to your computer and use it in GitHub Desktop.
Save vilhalmer/2112c846f79a2a8ee30329be481b425c to your computer and use it in GitHub Desktop.
Karabiner hyper key + vim-friendly capslock
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 200
},
"rules": [
{
"description": "caps_lock to left_control / escape when tapped",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "left_control to hyper",
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"type": "basic"
}
]
}
]
},
"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