From 44d4c0848d427e78f6cef4cffd4ea65d78439a40 Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Sun, 27 Aug 2023 22:53:39 -0700 Subject: [PATCH] Added remap rules for karabiner --- .../correct_terminal_keybindings.json | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 karabiner/.config/karabiner/assets/complex_modifications/correct_terminal_keybindings.json diff --git a/karabiner/.config/karabiner/assets/complex_modifications/correct_terminal_keybindings.json b/karabiner/.config/karabiner/assets/complex_modifications/correct_terminal_keybindings.json new file mode 100644 index 0000000..1759016 --- /dev/null +++ b/karabiner/.config/karabiner/assets/complex_modifications/correct_terminal_keybindings.json @@ -0,0 +1,110 @@ +{ + "title": "Correct Keybindings in Terminal", + "maintainers": ["nnovak"], + "rules": [ + { + "description": "Switch command+c to control+c for sending exit codes", + "manipulators": [ + { + "conditions": [ + { + "type": "frontmost_application_if", + "bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"] + } + ], + "from": { + "key_code": "c", + "modifiers": { + "mandatory": ["option"] + } + }, + "to": [ + { + "key_code": "c", + "modifiers": ["control"] + } + ], + "type": "basic" + } + ] + }, + { + "description": "Switch cmd+shift+c to command+c to be able to copy text", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "c", + "modifiers": { + "mandatory": ["left_command", "shift"] + } + }, + "to": [ + { + "key_code": "c", + "modifiers": ["left_command"] + } + ], + "type": "basic" + } + ] + }, + { + "description": "Switch command+v to control+v to have backwards compatibility", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "v", + "modifiers": { + "mandatory": ["left_command"] + } + }, + "to": [ + { + "key_code": "v", + "modifiers": ["control"] + } + ], + "type": "basic" + } + ] + }, + { + "description": "Switch command+shift+v to command+v to be able to paste", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": ["^net\\.kovidgoyal\\.kitty$"], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "v", + "modifiers": { + "mandatory": ["left_command", "shift"] + } + }, + "to": [ + { + "key_code": "v", + "modifiers": ["left_command"] + } + ], + "type": "basic" + } + ] + } + ] +}