diff --git a/.config /karabiner b/.config /karabiner deleted file mode 100644 index e69de29..0000000 diff --git a/.config /karabiner.json b/.config /karabiner.json new file mode 100644 index 0000000..c6ac93b --- /dev/null +++ b/.config /karabiner.json @@ -0,0 +1,50 @@ +{ + "global": { + "check_for_updates_on_startup": true, + "show_in_menu_bar": true, + "show_profile_name_in_menu_bar": false + }, + "profiles": [ + { + "name": "Default profile", + "selected": true, + "simple_modifications": { + "caps_lock": "escape" + }, + "complex_modifications": { + "parameters": { + "basic.simultaneous_threshold_milliseconds": 50, + "basic.to_if_alone_timeout_milliseconds": 1000, + "basic.to_if_held_down_threshold_milliseconds": 500 + }, + "rules": [ + { + "description": "Change caps_lock to escape if pressed alone, to control if held down", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "caps_lock" + }, + "to": [ + { + "key_code": "left_control" + } + ], + "to_if_alone": [ + { + "key_code": "escape" + } + ] + } + ] + } + ] + }, + "virtual_hid_keyboard": { + "keyboard_type": "ansi", + "caps_lock_delay_milliseconds": 0 + } + } + ] +}