mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(karabiner): Add support for external keyboard and spacel
This commit is contained in:
parent
baa6b368c3
commit
9748e4c828
2 changed files with 5445 additions and 1 deletions
5267
platforms/mac/karabiner/assets/complex_modifications/1741027882.json
Normal file
5267
platforms/mac/karabiner/assets/complex_modifications/1741027882.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -3,8 +3,141 @@
|
|||
{
|
||||
"complex_modifications": {
|
||||
"rules": [
|
||||
{
|
||||
"description": "SpaceFN: Space enables SpaceFN mode (see: https://geekhack.org/index.php?topic=51069.0 & https://spacelauncherapp.com)",
|
||||
"manipulators": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "_spacefn_mode",
|
||||
"type": "variable_if",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"from": { "key_code": "spacebar" },
|
||||
"parameters": {
|
||||
"basic.to_delayed_action_delay_milliseconds": 200,
|
||||
"basic.to_if_alone_timeout_milliseconds": 300,
|
||||
"basic.to_if_held_down_threshold_milliseconds": 200
|
||||
},
|
||||
"to_delayed_action": { "to_if_canceled": [{ "key_code": "spacebar" }] },
|
||||
"to_if_alone": [
|
||||
{
|
||||
"halt": true,
|
||||
"key_code": "spacebar"
|
||||
}
|
||||
],
|
||||
"to_if_held_down": [
|
||||
{
|
||||
"set_variable": {
|
||||
"key_up_value": 0,
|
||||
"name": "spacefn_mode",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "SpaceFN: Space+[hnei] to Left, Down, Up, Right; Space+[ko] to Home End",
|
||||
"manipulators": [
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "spacefn_mode",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": { "optional": ["any"] }
|
||||
},
|
||||
"to": [{ "key_code": "left_arrow" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "spacefn_mode",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "n",
|
||||
"modifiers": { "optional": ["any"] }
|
||||
},
|
||||
"to": [{ "key_code": "down_arrow" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "spacefn_mode",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "e",
|
||||
"modifiers": { "optional": ["any"] }
|
||||
},
|
||||
"to": [{ "key_code": "up_arrow" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "spacefn_mode",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "i",
|
||||
"modifiers": { "optional": ["any"] }
|
||||
},
|
||||
"to": [{ "key_code": "right_arrow" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "spacefn_mode",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": { "optional": ["any"] }
|
||||
},
|
||||
"to": [{ "key_code": "home" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"conditions": [
|
||||
{
|
||||
"name": "spacefn_mode",
|
||||
"type": "variable_if",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"from": {
|
||||
"key_code": "o",
|
||||
"modifiers": { "optional": ["any"] }
|
||||
},
|
||||
"to": [{ "key_code": "end" }],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Fn + Letter -> Left_Shift + Left_Option + Left_Control + Left_Command + Letter",
|
||||
"enabled": false,
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
|
|
@ -834,9 +967,53 @@
|
|||
"to": [{ "apple_vendor_top_case_key_code": "keyboard_fn" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 625,
|
||||
"vendor_id": 5426
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "left_command" },
|
||||
"to": [{ "key_code": "left_control" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "left_control" },
|
||||
"to": [{ "key_code": "left_command" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 625,
|
||||
"vendor_id": 5426
|
||||
},
|
||||
"ignore": false,
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "left_command" },
|
||||
"to": [{ "apple_vendor_top_case_key_code": "keyboard_fn" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "left_control" },
|
||||
"to": [{ "key_code": "left_command" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_pointing_device": true,
|
||||
"product_id": 625,
|
||||
"vendor_id": 5426
|
||||
},
|
||||
"ignore": false
|
||||
}
|
||||
],
|
||||
"name": "Default profile",
|
||||
"name": "Colemak",
|
||||
"selected": true,
|
||||
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue