From 30aaa9016c28bc2da10a9cd6349009e0f1601201 Mon Sep 17 00:00:00 2001 From: willemml Date: Thu, 30 Nov 2023 12:29:06 -0800 Subject: [PATCH] Binds F+HJKL to arrows on darwin --- home/darwin/hyperarrows.json | 64 ++++++++++++++++++++++++++++++------ 1 file changed, 54 insertions(+), 10 deletions(-) diff --git a/home/darwin/hyperarrows.json b/home/darwin/hyperarrows.json index 29ffe6d..3b25261 100644 --- a/home/darwin/hyperarrows.json +++ b/home/darwin/hyperarrows.json @@ -8,13 +8,19 @@ "from": { "key_code": "caps_lock", "modifiers": { - "optional": ["any"] + "optional": [ + "any" + ] } }, "to": [ { "key_code": "right_shift", - "modifiers": ["right_command", "right_control", "right_option"] + "modifiers": [ + "right_command", + "right_control", + "right_option" + ] } ], "to_if_alone": [ @@ -27,11 +33,11 @@ ] }, { - "description": "Hyper + JKL; keys to arrows", + "description": "Hyper + HJKL keys to arrows", "manipulators": [ { - "type": "basic", "from": { + "key_code": "h", "modifiers": { "mandatory": [ "right_command", @@ -39,14 +45,19 @@ "right_alt", "right_shift" ] - }, - "key_code": "j" + } }, - "to": [{ "repeat": true, "key_code": "left_arrow" }] + "to": [ + { + "key_code": "left_arrow", + "repeat": true + } + ], + "type": "basic" }, { "from": { - "key_code": "k", + "key_code": "j", "modifiers": { "mandatory": [ "right_gui", @@ -66,7 +77,7 @@ }, { "from": { - "key_code": "l", + "key_code": "k", "modifiers": { "mandatory": [ "right_gui", @@ -86,7 +97,7 @@ }, { "from": { - "key_code": "semicolon", + "key_code": "l", "modifiers": { "mandatory": [ "right_gui", @@ -105,6 +116,39 @@ "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" + } + ] } ] }