Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 169 additions & 0 deletions karabiner/karabiner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Option + L -> Ctrl + Cdm + q (SO Lock)",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["option"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "q",
"modifiers": ["control", "command"]
}
],
"type": "basic"
}
]
},
{
"description": "Ctrl+Delete -> Option+Delete (Backwards word delete)",
"manipulators": [
{
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["option"]
}
],
"type": "basic"
}
]
},
{
"description": "Control + Option + F1 -> Shell Cycle Audio Output",
"manipulators": [
{
"from": {
"key_code": "f1",
"modifiers": { "mandatory": ["control", "command"] }
},
"to": [{ "shell_command": "/opt/homebrew/bin/SwitchAudioSource -n" }],
"type": "basic"
}
]
},
{
"description": "Left Option (Tap) -> Cmd+Space (Spotlight/raycast on tap)",
"manipulators": [
{
"from": { "key_code": "left_option" },
"parameters": { "basic.to_if_alone_timeout_milliseconds": 250 },
"to": [{ "key_code": "left_option" }],
"to_if_alone": [
{
"key_code": "spacebar",
"modifiers": ["left_command"]
}
],
"type": "basic"
}
]
},
{
"description": "Print Screen → Ctrl+Shift+Command+4 (MacOS area selection)",
"manipulators": [
{
"from": { "key_code": "print_screen" },
"to": [
{
"key_code": "4",
"modifiers": ["left_control", "left_shift", "left_command"]
}
],
"type": "basic"
}
]
},
{
"description": "Cmd+D -> Cmd+L (Go to URL bar) [Browsers]",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.google\\.Chrome$",
"^com\\.apple\\.Safari$",
"^org\\.mozilla\\.firefox$",
"^com\\.microsoft\\.edgemac$",
"^com\\.brave\\.Browser$",
"^com\\.thebrowser\\.Browser$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "d",
"modifiers": { "mandatory": ["left_command"] }
},
"to": [
{
"key_code": "l",
"modifiers": ["left_command"]
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"identifiers": {
"is_keyboard": true,
"product_id": 654,
"vendor_id": 1008
},
"ignore": true
},
{
"identifiers": {
"is_keyboard": true,
"is_pointing_device": true,
"product_id": 832,
"vendor_id": 13364
},
"ignore": false
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 832,
"vendor_id": 13364
},
"ignore": true,
"ignore_vendor_events": true
}
],
"name": "Default profile",
"selected": true,
"simple_modifications": [
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
}
],
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
}
]
}
Loading