add alt and command swap for razer keyboard in karabiner elements

This commit is contained in:
Ivar Fatland
2026-09-30 08:50:15 +02:00
parent 14cde96c91
commit e104c33dc5
2 changed files with 66 additions and 15 deletions
@@ -35,24 +35,58 @@
"type": "basic" "type": "basic"
} }
] ]
}
]
},
"devices": [
{
"identifiers": {
"is_keyboard": true,
"product_id": 21042,
"vendor_id": 1155
},
"simple_modifications": [
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "non_us_backslash" }]
}
]
}, },
{ {
"description": "swap alt and cmd", "identifiers": {
"manipulators": [ "is_keyboard": true,
"product_id": 8467,
"vendor_id": 16700
},
"simple_modifications": [
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{ {
"from": { "key_code": "left_option" }, "from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }], "to": [{ "key_code": "left_command" }]
"type": "basic" }
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 5225,
"vendor_id": 1266
},
"simple_modifications": [
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
}, },
{ {
"from": { "key_code": "left_command" }, "from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }], "to": [{ "key_code": "left_option" }]
"type": "basic"
} }
] ]
} }
] ],
},
"name": "KarabinerTS", "name": "KarabinerTS",
"selected": true, "selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" } "virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
@@ -75,6 +75,23 @@
"product_id": 5225, "product_id": 5225,
"vendor_id": 1266 "vendor_id": 1266
}, },
"simple_modifications": [
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 599,
"vendor_id": 5426
},
"simple_modifications": [ "simple_modifications": [
{ {
"from": { "key_code": "left_option" }, "from": { "key_code": "left_option" },