summaryrefslogtreecommitdiff
path: root/.config/karabiner/karabiner.json
diff options
context:
space:
mode:
Diffstat (limited to '.config/karabiner/karabiner.json')
-rw-r--r--.config/karabiner/karabiner.json65
1 files changed, 65 insertions, 0 deletions
diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json
new file mode 100644
index 0000000..a19c9e7
--- /dev/null
+++ b/.config/karabiner/karabiner.json
@@ -0,0 +1,65 @@
+{
+ "profiles": [
+ {
+ "complex_modifications": {
+ "rules": [
+ {
+ "description": "Change caps_lock to control when held, escape when tapped",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "caps_lock",
+ "modifiers": { "optional": ["any"] }
+ },
+ "to": [{ "key_code": "left_control" }],
+ "to_if_alone": [{ "key_code": "escape" }],
+ "type": "basic"
+ }
+ ]
+ },
+ {
+ "description": "Swap left_meta and left_super",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "caps_lock",
+ "modifiers": { "optional": ["any"] }
+ },
+ "to": [{ "key_code": "left_control" }],
+ "to_if_alone": [{ "key_code": "escape" }],
+ "type": "basic"
+ }
+ ]
+ }
+ ]
+ },
+ "mouse_key": {},
+ "name": "Default profile",
+ "selected": true,
+ "simple_modifications": [
+ {
+ "from": { "key_code": "left_command" },
+ "to": [{ "key_code": "left_option" }]
+ },
+ {
+ "from": { "key_code": "left_option" },
+ "to": [{ "key_code": "left_command" }]
+ },
+ {
+ "from": { "key_code": "right_command" },
+ "to": [{ "key_code": "right_option" }]
+ },
+ {
+ "from": { "key_code": "right_option" },
+ "to": [{ "key_code": "right_command" }]
+ }
+ ],
+ "standalone_keys": [],
+ "sticky_modifier_keys": [],
+ "virtual_hid_keyboard": {
+ "keyboard_type": "ansi",
+ "keyboard_type_v2": "ansi"
+ }
+ }
+ ]
+}