summaryrefslogtreecommitdiffstats
path: root/config/karabiner/assets/complex_modifications
diff options
context:
space:
mode:
Diffstat (limited to 'config/karabiner/assets/complex_modifications')
-rw-r--r--config/karabiner/assets/complex_modifications/command-escape.json32
-rw-r--r--config/karabiner/assets/complex_modifications/number-row.json390
-rw-r--r--config/karabiner/assets/complex_modifications/other-remapping.json200
-rw-r--r--config/karabiner/assets/complex_modifications/terminal-overrides.json135
4 files changed, 757 insertions, 0 deletions
diff --git a/config/karabiner/assets/complex_modifications/command-escape.json b/config/karabiner/assets/complex_modifications/command-escape.json
new file mode 100644
index 0000000..03c6167
--- /dev/null
+++ b/config/karabiner/assets/complex_modifications/command-escape.json
@@ -0,0 +1,32 @@
+{
+ "title": "Map Command to Escape when pressed alone",
+ "rules": [
+ {
+ "manipulators": [
+ {
+ "description": "Map left command to escape",
+ "type": "basic",
+ "from": {
+ "key_code": "left_command",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "left_command",
+ "lazy": true
+ }
+ ],
+ "to_if_alone": [
+ {
+ "key_code": "escape"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/config/karabiner/assets/complex_modifications/number-row.json b/config/karabiner/assets/complex_modifications/number-row.json
new file mode 100644
index 0000000..f56166b
--- /dev/null
+++ b/config/karabiner/assets/complex_modifications/number-row.json
@@ -0,0 +1,390 @@
+{
+ "title": "Exchange numbers and symbols",
+ "rules": [
+ {
+ "description": "Exchange numbers and symbols (1234567890 and !@#$%^&*())",
+ "manipulators": [
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "1",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "1",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "2",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "2",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "3",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "3",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "4",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "4",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "5",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "5",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "6",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "6",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "7",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "7",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "8",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "8",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "9",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "9",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "0",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "0",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "1",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "1"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "2",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "2"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "3",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "3"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "4",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "4"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "5",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "5"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "6",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "6"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "7",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "7"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "8",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "8"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "9",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "9"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "0",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "0"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/config/karabiner/assets/complex_modifications/other-remapping.json b/config/karabiner/assets/complex_modifications/other-remapping.json
new file mode 100644
index 0000000..b817219
--- /dev/null
+++ b/config/karabiner/assets/complex_modifications/other-remapping.json
@@ -0,0 +1,200 @@
+{
+ "title": "Other keyboard remappings",
+ "rules": [
+ {
+ "description": "Other keyboard remappings",
+ "manipulators": [
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "grave_accent_and_tilde",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "grave_accent_and_tilde",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "grave_accent_and_tilde",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "grave_accent_and_tilde"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "hyphen",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "hyphen",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "hyphen",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "hyphen"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "open_bracket",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "open_bracket",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "open_bracket",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "open_bracket"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "close_bracket",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "close_bracket",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "close_bracket",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "close_bracket"
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "backslash",
+ "modifiers": {
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "backslash",
+ "modifiers": [
+ "left_shift"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "backslash",
+ "modifiers": {
+ "mandatory": [
+ "shift"
+ ],
+ "optional": [
+ "caps_lock"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "backslash"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/config/karabiner/assets/complex_modifications/terminal-overrides.json b/config/karabiner/assets/complex_modifications/terminal-overrides.json
new file mode 100644
index 0000000..f15ac37
--- /dev/null
+++ b/config/karabiner/assets/complex_modifications/terminal-overrides.json
@@ -0,0 +1,135 @@
+{
+ "title": "Terminal overrides",
+ "rules": [
+ {
+ "description": "Swap command and control in terminal applications",
+ "manipulators": [
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "left_command",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "left_control",
+ "lazy": true
+ }
+ ],
+ "to_if_alone": [
+ {
+ "key_code": "escape"
+ }
+ ],
+ "conditions": [
+ {
+ "type": "frontmost_application_if",
+ "bundle_identifiers": [
+ "^com\\.apple\\.Terminal$",
+ "^com\\.googlecode\\.iterm2$",
+ "^co\\.zeit\\.hyperterm$",
+ "^co\\.zeit\\.hyper$",
+ "^io\\.alacritty$",
+ "^net\\.kovidgoyal\\.kitty$"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "left_control",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "left_command",
+ "lazy": true
+ }
+ ],
+ "conditions": [
+ {
+ "type": "frontmost_application_if",
+ "bundle_identifiers": [
+ "^com\\.apple\\.Terminal$",
+ "^com\\.googlecode\\.iterm2$",
+ "^co\\.zeit\\.hyperterm$",
+ "^co\\.zeit\\.hyper$",
+ "^io\\.alacritty$",
+ "^net\\.kovidgoyal\\.kitty$"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "right_command",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "right_control",
+ "lazy": true
+ }
+ ],
+ "conditions": [
+ {
+ "type": "frontmost_application_if",
+ "bundle_identifiers": [
+ "^com\\.apple\\.Terminal$",
+ "^com\\.googlecode\\.iterm2$",
+ "^co\\.zeit\\.hyperterm$",
+ "^co\\.zeit\\.hyper$",
+ "^io\\.alacritty$",
+ "^net\\.kovidgoyal\\.kitty$"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "right_control",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "right_command",
+ "lazy": true
+ }
+ ],
+ "conditions": [
+ {
+ "type": "frontmost_application_if",
+ "bundle_identifiers": [
+ "^com\\.apple\\.Terminal$",
+ "^com\\.googlecode\\.iterm2$",
+ "^co\\.zeit\\.hyperterm$",
+ "^co\\.zeit\\.hyper$",
+ "^io\\.alacritty$",
+ "^net\\.kovidgoyal\\.kitty$"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}