From 95632a0fd4b635a09c26a5872704efcf0cc04fc6 Mon Sep 17 00:00:00 2001 From: Mikkel Svartveit Date: Thu, 27 Nov 2025 09:26:59 +0100 Subject: [PATCH] Update Karabiner --- .../complex_modifications/uk-backtick.json | 29 +++++++ .../automatic_backups/karabiner_20251127.json | 78 +++++++++++++++++++ karabiner/karabiner.json | 16 ++++ 3 files changed, 123 insertions(+) create mode 100644 karabiner/assets/complex_modifications/uk-backtick.json create mode 100644 karabiner/automatic_backups/karabiner_20251127.json diff --git a/karabiner/assets/complex_modifications/uk-backtick.json b/karabiner/assets/complex_modifications/uk-backtick.json new file mode 100644 index 0000000..ec090de --- /dev/null +++ b/karabiner/assets/complex_modifications/uk-backtick.json @@ -0,0 +1,29 @@ +{ + "title": "Fix backtick on ISO keyboard", + "rules": [ + { + "description": "Fix backtick on ISO keyboard", + "manipulators": [ + { + "type": "basic", + "conditions": [ + { + "type": "input_source_if", + "input_sources": [ + { + "language": "en" + } + ] + } + ], + "from": { + "key_code": "non_us_backslash" + }, + "to": { + "key_code": "grave_accent_and_tilde" + } + } + ] + } + ] +} diff --git a/karabiner/automatic_backups/karabiner_20251127.json b/karabiner/automatic_backups/karabiner_20251127.json new file mode 100644 index 0000000..b65481c --- /dev/null +++ b/karabiner/automatic_backups/karabiner_20251127.json @@ -0,0 +1,78 @@ +{ + "profiles": [ + { + "complex_modifications": { + "parameters": { "basic.to_if_alone_timeout_milliseconds": 500 }, + "rules": [ + { + "description": "Post Esc if Caps is tapped, Control if held.", + "manipulators": [ + { + "from": { + "key_code": "left_control", + "modifiers": { "optional": ["any"] } + }, + "to": [ + { + "key_code": "left_control", + "lazy": true + } + ], + "to_if_alone": [{ "key_code": "escape" }], + "type": "basic" + } + ] + } + ] + }, + "devices": [ + { + "identifiers": { + "is_keyboard": true, + "product_id": 45849, + "vendor_id": 1133 + }, + "simple_modifications": [ + { + "from": { "key_code": "left_command" }, + "to": [{ "key_code": "left_option" }] + }, + { + "from": { "key_code": "left_option" }, + "to": [{ "key_code": "left_command" }] + } + ] + }, + { + "identifiers": { + "is_keyboard": true, + "product_id": 615, + "vendor_id": 76 + }, + "simple_modifications": [ + { + "from": { "consumer_key_code": "eject" }, + "to": [{ "consumer_key_code": "al_terminal_lock_or_screensaver" }] + } + ] + } + ], + "name": "Default profile", + "selected": true, + "simple_modifications": [ + { + "from": { "key_code": "caps_lock" }, + "to": [{ "key_code": "left_control" }] + }, + { + "from": { "key_code": "escape" }, + "to": [{ "key_code": "caps_lock" }] + } + ], + "virtual_hid_keyboard": { + "country_code": 0, + "keyboard_type_v2": "ansi" + } + } + ] +} \ No newline at end of file diff --git a/karabiner/karabiner.json b/karabiner/karabiner.json index b65481c..ec735d5 100644 --- a/karabiner/karabiner.json +++ b/karabiner/karabiner.json @@ -4,6 +4,22 @@ "complex_modifications": { "parameters": { "basic.to_if_alone_timeout_milliseconds": 500 }, "rules": [ + { + "description": "Fix backtick on ISO keyboard", + "manipulators": [ + { + "conditions": [ + { + "input_sources": [{ "language": "en" }], + "type": "input_source_if" + } + ], + "from": { "key_code": "non_us_backslash" }, + "to": { "key_code": "grave_accent_and_tilde" }, + "type": "basic" + } + ] + }, { "description": "Post Esc if Caps is tapped, Control if held.", "manipulators": [