dotfiles/.config/karabiner/karabiner.json

80 lines
3.1 KiB
JSON
Raw Normal View History

2024-12-05 09:19:58 +01:00
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
2024-12-28 22:16:27 +01:00
"description": "Hyperkey",
2024-12-05 09:19:58 +01:00
"manipulators": [
{
2024-12-28 22:16:27 +01:00
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": ["shift"],
"optional": ["caps_lock"]
}
},
2024-12-05 09:19:58 +01:00
"to": [
{
2024-12-28 22:16:27 +01:00
"key_code": "left_shift",
"modifiers": ["left_command", "left_control", "left_option"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "caps_lock",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "left_command",
"modifiers": ["left_control", "left_option"]
2024-12-05 09:19:58 +01:00
}
],
"type": "basic"
}
]
},
{
2024-12-28 22:16:27 +01:00
"description": "Play/Pause controls spotify only when it's running",
2024-12-05 09:19:58 +01:00
"manipulators": [
{
2024-12-28 22:16:27 +01:00
"from": { "key_code": "f8" },
2024-12-05 09:19:58 +01:00
"to": [
{
2024-12-28 22:16:27 +01:00
"halt": true,
"repeat": false,
"shell_command": "osascript ~/.config/karabiner/scripts/spotify_playpause.scpt"
2024-12-05 09:19:58 +01:00
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"identifiers": {
"is_keyboard": true,
"is_pointing_device": true,
"product_id": 45091,
"vendor_id": 1133
},
"ignore": false
}
],
"name": "Default profile",
"selected": true,
"simple_modifications": [
{
"from": { "consumer_key_code": "play_or_pause" },
"to": [{ "key_code": "vk_none" }]
}
],
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
}
]
}