Binds F+HJKL to arrows on darwin

This commit is contained in:
willemml 2023-11-30 12:29:06 -08:00
parent 08d8468670
commit 30aaa9016c
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD

View file

@ -8,13 +8,19 @@
"from": { "from": {
"key_code": "caps_lock", "key_code": "caps_lock",
"modifiers": { "modifiers": {
"optional": ["any"] "optional": [
"any"
]
} }
}, },
"to": [ "to": [
{ {
"key_code": "right_shift", "key_code": "right_shift",
"modifiers": ["right_command", "right_control", "right_option"] "modifiers": [
"right_command",
"right_control",
"right_option"
]
} }
], ],
"to_if_alone": [ "to_if_alone": [
@ -27,11 +33,11 @@
] ]
}, },
{ {
"description": "Hyper + JKL; keys to arrows", "description": "Hyper + HJKL keys to arrows",
"manipulators": [ "manipulators": [
{ {
"type": "basic",
"from": { "from": {
"key_code": "h",
"modifiers": { "modifiers": {
"mandatory": [ "mandatory": [
"right_command", "right_command",
@ -39,14 +45,19 @@
"right_alt", "right_alt",
"right_shift" "right_shift"
] ]
}
}, },
"key_code": "j" "to": [
}, {
"to": [{ "repeat": true, "key_code": "left_arrow" }] "key_code": "left_arrow",
"repeat": true
}
],
"type": "basic"
}, },
{ {
"from": { "from": {
"key_code": "k", "key_code": "j",
"modifiers": { "modifiers": {
"mandatory": [ "mandatory": [
"right_gui", "right_gui",
@ -66,7 +77,7 @@
}, },
{ {
"from": { "from": {
"key_code": "l", "key_code": "k",
"modifiers": { "modifiers": {
"mandatory": [ "mandatory": [
"right_gui", "right_gui",
@ -86,7 +97,7 @@
}, },
{ {
"from": { "from": {
"key_code": "semicolon", "key_code": "l",
"modifiers": { "modifiers": {
"mandatory": [ "mandatory": [
"right_gui", "right_gui",
@ -105,6 +116,39 @@
"type": "basic" "type": "basic"
} }
] ]
},
{
"description": "F as Hyper",
"manipulators": [
{
"from": {
"key_code": "f",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "f",
"repeat": true
}
],
"to_if_held_down": [
{
"key_code": "right_shift",
"modifiers": [
"right_gui",
"right_control",
"right_alt"
],
"repeat": true
}
],
"type": "basic"
}
]
} }
] ]
} }