Created
June 14, 2017 03:14
-
-
Save prenagha/3b1a0b18f09c1df91d7c2a376f27a4eb to your computer and use it in GitHub Desktop.
Karabiner Elements Config for Basic vi-style movements and Hyper Key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"rules": [ | |
{ | |
"manipulators": [ | |
{ | |
"description": "VI CapsLock-h to Move Left", | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"mandatory": [ | |
"right_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "VI CapsLock-j to Move Down", | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"mandatory": [ | |
"right_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "VI CapsLock-k to Move Up", | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"mandatory": [ | |
"right_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "VI CapsLock-l to Move Right", | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"mandatory": [ | |
"right_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "VI CapsLock-0 to Beginning of Line", | |
"from": { | |
"key_code": "0", | |
"modifiers": { | |
"mandatory": [ | |
"right_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "VI CapsLock-4 (as in $) to End of Line", | |
"from": { | |
"key_code": "4", | |
"modifiers": { | |
"mandatory": [ | |
"right_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "VI CapsLock-b to Back Word", | |
"from": { | |
"key_code": "b", | |
"modifiers": { | |
"mandatory": [ | |
"right_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "VI CapsLock-w to Forward Word", | |
"from": { | |
"key_code": "w", | |
"modifiers": { | |
"mandatory": [ | |
"right_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"description": "Left Control to Hyper Key", | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift", | |
"modifiers": [ | |
"left_command", | |
"left_control", | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [], | |
"fn_function_keys": { | |
"f1": "display_brightness_decrement", | |
"f10": "mute", | |
"f11": "volume_decrement", | |
"f12": "volume_increment", | |
"f2": "display_brightness_increment", | |
"f3": "vk_none", | |
"f4": "vk_none", | |
"f5": "vk_none", | |
"f6": "vk_none", | |
"f7": "rewind", | |
"f8": "play_or_pause", | |
"f9": "fastforward" | |
}, | |
"name": "Default profile", | |
"selected": true, | |
"simple_modifications": { | |
"caps_lock": "right_control" | |
}, | |
"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
Thanks for posting this!
Do you think it's possible to map hyper to cmd+shift+alt+option without going through right-option?
The reason I am asking, currently arrow keys + hyper is mapped as shortcut to manage windows around. With this modification within other apps it is simple detected as option and not cmd+shift+alt+option.