nix/config/karabiner/karabiner.json
Harivansh Rathi 978f31411d
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: external keyboard mappings
2026-04-14 21:24:07 -04:00

349 lines
8.8 KiB
JSON

{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Caps Lock + 6 = Open Telegram",
"manipulators": [
{
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"shell_command": "open -a 'Telegram'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 5 = Open Riptide",
"manipulators": [
{
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"shell_command": "open -a 'Riptide-Beta'"
}
],
"type": "basic"
}
]
},
{
"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 + 1 = Open Helium",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"shell_command": "open -a 'Helium'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 2 = Open Ghostty",
"manipulators": [
{
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"shell_command": "open -a 'Ghostty'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 3 = Open Messages",
"manipulators": [
{
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"shell_command": "open -a 'Messages'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 4 = Open Signal",
"manipulators": [
{
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"shell_command": "open -a 'Signal'"
}
],
"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" }]
}
]
}
],
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"
}
}
]
}