nix/config/karabiner/karabiner.json
Hari 21c947e4ae
Some checks are pending
quality / changes (push) Waiting to run
quality / Flake Check (push) Blocked by required conditions
quality / Nix Format Check (push) Blocked by required conditions
quality / Deploy netty (push) Blocked by required conditions
feat: aerospace (#73)
2026-04-15 13:44:48 -04:00

227 lines
5.7 KiB
JSON

{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Caps Lock to Control (held) / Escape (tapped)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + H = Left Arrow",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + J = Scroll Down",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"mouse_key": {
"vertical_wheel": 80
}
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + K = Scroll Up",
"manipulators": [
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"mouse_key": {
"vertical_wheel": -80
}
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + L = Right Arrow",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Control + L = Right Arrow",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Control + H = Left Arrow",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Right Command = Ctrl+B (tmux prefix)",
"manipulators": [
{
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "b",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"identifiers": {
"is_keyboard": true,
"product_id": 911,
"vendor_id": 1008
},
"simple_modifications": [
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "right_option" },
"to": [{ "key_code": "right_command" }]
},
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "right_option" }]
},
{
"from": { "key_code": "escape" },
"to": [{ "key_code": "grave_accent_and_tilde" }]
}
]
}
],
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"
}
}
]
}