From b281daed465282b09fb05e8b1b494688b9927d1c Mon Sep 17 00:00:00 2001 From: Antoine Date: Fri, 22 Mar 2024 10:38:13 +0100 Subject: [PATCH] add file --- custom-capslock.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 custom-capslock.json diff --git a/custom-capslock.json b/custom-capslock.json new file mode 100644 index 0000000..d5e1508 --- /dev/null +++ b/custom-capslock.json @@ -0,0 +1,32 @@ +{ + "title": "Change caps_lock to Esc and Control", + "rules": [ + { + "description": "Post Esc if Caps is tapped, Control if held.", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_control", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_control", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "escape" + } + ] +} + ] + } + ] +}