Skip to content

Instantly share code, notes, and snippets.

@MillerApps
Created April 19, 2024 06:09
Show Gist options
  • Save MillerApps/d6bcde93678b9f5a7c5979e184d0148b to your computer and use it in GitHub Desktop.
Save MillerApps/d6bcde93678b9f5a7c5979e184d0148b to your computer and use it in GitHub Desktop.
Karabiner Elements hyperKey + v Vim binds
{
"description": "Vim-style arrow keys on Hyper + V",
"manipulators": [
{
"conditions": [
{
"name": "hyper_v_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "hyper_v_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "hyper_v_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "hyper_v_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "v",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"set_variable": {
"name": "hyper_v_mode",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "hyper_v_mode",
"value": 0
}
}
],
"type": "basic"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment