Skip to content

Commit

Permalink
karabiner: Add karabiner-elements config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Kaplan committed Feb 8, 2020
1 parent feb5f59 commit a9e63c3
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 1 deletion.
3 changes: 2 additions & 1 deletion darwin.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
quiet: false

- link:
~/.config/zsh/os.zshrc: zsh/darwin.zshrc
~/.config/git/config-os: git/config-darwin
~/.config/karabiner: karabiner/
~/.config/nvim/os-plugins.vim: neovim/darwin-plugins.vim
~/.config/zsh/os.zshrc: zsh/darwin.zshrc
2 changes: 2 additions & 0 deletions karabiner/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/assets
/automatic_backups
144 changes: 144 additions & 0 deletions karabiner/karabiner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
{
"description": "Toggle caps_lock by pressing left_shift + right_shift at the same time",
"manipulators": [
{
"from": {
"key_code": "left_shift",
"modifiers": {
"mandatory": [
"right_shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"to_if_alone": [
{
"key_code": "left_shift"
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_shift",
"modifiers": {
"mandatory": [
"left_shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"to_if_alone": [
{
"key_code": "right_shift"
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 24866,
"vendor_id": 7504
},
"ignore": true,
"manipulate_caps_lock_led": false,
"simple_modifications": []
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 636,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": {
"key_code": "escape"
}
},
{
"from": {
"key_code": "right_option"
},
"to": {
"key_code": "right_control"
}
}
]
},
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 50475,
"vendor_id": 1133
},
"ignore": false,
"manipulate_caps_lock_led": false,
"simple_modifications": []
}
],
"fn_function_keys": [],
"name": "Default profile",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [],
"virtual_hid_keyboard": {
"country_code": 0,
"mouse_key_xy_scale": 100
}
}
]
}

0 comments on commit a9e63c3

Please sign in to comment.