From 7a34d51e4fe19a6a628037f1536dae6789b3bc20 Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Sat, 28 Dec 2024 22:16:27 +0100 Subject: [PATCH] karabiner: Updated config --- .config/karabiner/karabiner.json | 50 ++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json index c942a3a..24f11e3 100644 --- a/.config/karabiner/karabiner.json +++ b/.config/karabiner/karabiner.json @@ -3,6 +3,40 @@ { "complex_modifications": { "rules": [ + { + "description": "Hyperkey", + "manipulators": [ + { + "from": { + "key_code": "caps_lock", + "modifiers": { + "mandatory": ["shift"], + "optional": ["caps_lock"] + } + }, + "to": [ + { + "key_code": "left_shift", + "modifiers": ["left_command", "left_control", "left_option"] + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "caps_lock", + "modifiers": { "optional": ["any"] } + }, + "to": [ + { + "key_code": "left_command", + "modifiers": ["left_control", "left_option"] + } + ], + "type": "basic" + } + ] + }, { "description": "Play/Pause controls spotify only when it's running", "manipulators": [ @@ -18,22 +52,6 @@ "type": "basic" } ] - }, - { - "description": "Caps Lock → Hyper Key without Shift (⌃⌥⌘)", - "manipulators": [ - { - "from": { "key_code": "caps_lock" }, - "to": [ - { - "key_code": "left_command", - "modifiers": ["left_control", "left_option"] - } - ], - "to_if_alone": [{ "key_code": "caps_lock" }], - "type": "basic" - } - ] } ] },