feat: swap alt + win on desktop keyboard to match layout of Apple keyboards

This commit is contained in:
2026-01-18 23:01:07 -05:00
parent 81f3829d22
commit 30ee5cee91
+111 -89
View File
@@ -1,9 +1,97 @@
{
"global": { "show_in_menu_bar": false },
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Swap left Alt (Option) and left Command (Win) on Razer Ornata V3 Tenkeyless only",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"is_keyboard": true,
"product_id": 675,
"vendor_id": 5426
}
],
"type": "device_if"
}
],
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"is_keyboard": true,
"product_id": 675,
"vendor_id": 5426
}
],
"type": "device_if"
}
],
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }],
"type": "basic"
}
]
},
{
"description": "Razer Ornata V3 Tenkeyless: direct tap-to-copy/paste",
"enabled": false,
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"is_keyboard": true,
"product_id": 675,
"vendor_id": 5426
}
],
"type": "device_if"
}
],
"from": { "key_code": "left_command" },
"to": [
{
"key_code": "c",
"modifiers": ["command"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"is_keyboard": true,
"product_id": 675,
"vendor_id": 5426
}
],
"type": "device_if"
}
],
"from": { "key_code": "left_option" },
"to": [
{
"key_code": "v",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
},
{
"description": "Hyper Key (⌃⌥⇧⌘)",
"manipulators": [
@@ -16,11 +104,7 @@
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
"modifiers": ["left_command", "left_control", "left_option"]
}
],
"to_if_alone": [{ "key_code": "escape" }],
@@ -79,14 +163,7 @@
"description": "Toggle Hyper sublayer a",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [
{
@@ -255,14 +332,7 @@
"description": "Toggle Hyper sublayer r",
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [
{
@@ -295,11 +365,7 @@
"key_code": "v",
"modifiers": { "mandatory": ["any"] }
},
"to": [
{
"shell_command": "open raycast://extensions/koinzhang/paste-as-plain-text/paste-as-plain-text?arguments=%7B%22advancedPasteFormat%22%3A%22%22%7D"
}
],
"to": [{ "shell_command": "open raycast://extensions/koinzhang/paste-as-plain-text/paste-as-plain-text?arguments=%7B%22advancedPasteFormat%22%3A%22%22%7D" }],
"type": "basic"
}
]
@@ -323,14 +389,7 @@
"description": "Toggle Hyper sublayer w",
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [
{
@@ -427,9 +486,7 @@
"key_code": "u",
"modifiers": { "mandatory": ["any"] }
},
"to": [
{ "shell_command": "open -a 'Microsoft Word.app'" }
],
"to": [{ "shell_command": "open -a 'Microsoft Word.app'" }],
"type": "basic"
},
{
@@ -445,9 +502,7 @@
"key_code": "i",
"modifiers": { "mandatory": ["any"] }
},
"to": [
{ "shell_command": "open -a 'Microsoft Excel.app'" }
],
"to": [{ "shell_command": "open -a 'Microsoft Excel.app'" }],
"type": "basic"
},
{
@@ -463,9 +518,7 @@
"key_code": "o",
"modifiers": { "mandatory": ["any"] }
},
"to": [
{ "shell_command": "open -a 'Microsoft Teams.app'" }
],
"to": [{ "shell_command": "open -a 'Microsoft Teams.app'" }],
"type": "basic"
},
{
@@ -481,11 +534,7 @@
"key_code": "p",
"modifiers": { "mandatory": ["any"] }
},
"to": [
{
"shell_command": "open -a 'Microsoft Outlook.app'"
}
],
"to": [{ "shell_command": "open -a 'Microsoft Outlook.app'" }],
"type": "basic"
}
]
@@ -496,14 +545,7 @@
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
@@ -516,14 +558,7 @@
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
@@ -536,14 +571,7 @@
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
@@ -556,14 +584,7 @@
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
@@ -576,14 +597,7 @@
{
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [
{
@@ -610,6 +624,14 @@
"to": [{ "key_code": "left_alt" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 675,
"vendor_id": 5426
},
"ignore_vendor_events": true
}
],
"name": "Default profile",