From 09e4238048d1dbf0ab4bd7bd28e36b522d859593 Mon Sep 17 00:00:00 2001 From: Matthew Fallshaw Date: Sun, 19 May 2019 15:10:18 +1000 Subject: [PATCH] karabiner CapsLock to Esc if alone --- config/karabiner/karabiner.json | 40 ++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/config/karabiner/karabiner.json b/config/karabiner/karabiner.json index 7f282ae..6426b3f 100644 --- a/config/karabiner/karabiner.json +++ b/config/karabiner/karabiner.json @@ -179,6 +179,32 @@ "type": "basic" } ] + }, + { + "description": "Change caps_lock key to right_control. (Post escape key when pressed alone)", + "manipulators": [ + { + "from": { + "key_code": "caps_lock", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_control" + } + ], + "to_if_alone": [ + { + "key_code": "escape" + } + ], + "type": "basic" + } + ] } ] }, @@ -432,20 +458,12 @@ ], "name": "Default profile", "selected": true, - "simple_modifications": [ - { - "from": { - "key_code": "caps_lock" - }, - "to": { - "key_code": "right_control" - } - } - ], + "simple_modifications": [], "virtual_hid_keyboard": { "caps_lock_delay_milliseconds": 0, "country_code": 0, - "keyboard_type": "ansi" + "keyboard_type": "ansi", + "mouse_key_xy_scale": 100 } } ]