feat: swap alt + win on desktop keyboard to match layout of Apple keyboards
This commit is contained in:
@@ -1,9 +1,97 @@
|
|||||||
{
|
{
|
||||||
"global": { "show_in_menu_bar": false },
|
|
||||||
"profiles": [
|
"profiles": [
|
||||||
{
|
{
|
||||||
"complex_modifications": {
|
"complex_modifications": {
|
||||||
"rules": [
|
"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 (⌃⌥⇧⌘)",
|
"description": "Hyper Key (⌃⌥⇧⌘)",
|
||||||
"manipulators": [
|
"manipulators": [
|
||||||
@@ -16,11 +104,7 @@
|
|||||||
"to": [
|
"to": [
|
||||||
{
|
{
|
||||||
"key_code": "left_shift",
|
"key_code": "left_shift",
|
||||||
"modifiers": [
|
"modifiers": ["left_command", "left_control", "left_option"]
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"to_if_alone": [{ "key_code": "escape" }],
|
"to_if_alone": [{ "key_code": "escape" }],
|
||||||
@@ -79,14 +163,7 @@
|
|||||||
"description": "Toggle Hyper sublayer a",
|
"description": "Toggle Hyper sublayer a",
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "a",
|
"key_code": "a",
|
||||||
"modifiers": {
|
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
|
||||||
"mandatory": [
|
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_shift",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [
|
||||||
{
|
{
|
||||||
@@ -255,14 +332,7 @@
|
|||||||
"description": "Toggle Hyper sublayer r",
|
"description": "Toggle Hyper sublayer r",
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "r",
|
"key_code": "r",
|
||||||
"modifiers": {
|
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
|
||||||
"mandatory": [
|
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_shift",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [
|
||||||
{
|
{
|
||||||
@@ -295,11 +365,7 @@
|
|||||||
"key_code": "v",
|
"key_code": "v",
|
||||||
"modifiers": { "mandatory": ["any"] }
|
"modifiers": { "mandatory": ["any"] }
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [{ "shell_command": "open raycast://extensions/koinzhang/paste-as-plain-text/paste-as-plain-text?arguments=%7B%22advancedPasteFormat%22%3A%22%22%7D" }],
|
||||||
{
|
|
||||||
"shell_command": "open raycast://extensions/koinzhang/paste-as-plain-text/paste-as-plain-text?arguments=%7B%22advancedPasteFormat%22%3A%22%22%7D"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -323,14 +389,7 @@
|
|||||||
"description": "Toggle Hyper sublayer w",
|
"description": "Toggle Hyper sublayer w",
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "w",
|
"key_code": "w",
|
||||||
"modifiers": {
|
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
|
||||||
"mandatory": [
|
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_shift",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [
|
||||||
{
|
{
|
||||||
@@ -427,9 +486,7 @@
|
|||||||
"key_code": "u",
|
"key_code": "u",
|
||||||
"modifiers": { "mandatory": ["any"] }
|
"modifiers": { "mandatory": ["any"] }
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [{ "shell_command": "open -a 'Microsoft Word.app'" }],
|
||||||
{ "shell_command": "open -a 'Microsoft Word.app'" }
|
|
||||||
],
|
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -445,9 +502,7 @@
|
|||||||
"key_code": "i",
|
"key_code": "i",
|
||||||
"modifiers": { "mandatory": ["any"] }
|
"modifiers": { "mandatory": ["any"] }
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [{ "shell_command": "open -a 'Microsoft Excel.app'" }],
|
||||||
{ "shell_command": "open -a 'Microsoft Excel.app'" }
|
|
||||||
],
|
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -463,9 +518,7 @@
|
|||||||
"key_code": "o",
|
"key_code": "o",
|
||||||
"modifiers": { "mandatory": ["any"] }
|
"modifiers": { "mandatory": ["any"] }
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [{ "shell_command": "open -a 'Microsoft Teams.app'" }],
|
||||||
{ "shell_command": "open -a 'Microsoft Teams.app'" }
|
|
||||||
],
|
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -481,11 +534,7 @@
|
|||||||
"key_code": "p",
|
"key_code": "p",
|
||||||
"modifiers": { "mandatory": ["any"] }
|
"modifiers": { "mandatory": ["any"] }
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [{ "shell_command": "open -a 'Microsoft Outlook.app'" }],
|
||||||
{
|
|
||||||
"shell_command": "open -a 'Microsoft Outlook.app'"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -496,14 +545,7 @@
|
|||||||
{
|
{
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "h",
|
"key_code": "h",
|
||||||
"modifiers": {
|
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
|
||||||
"mandatory": [
|
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_shift",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"to": [{ "key_code": "left_arrow" }],
|
"to": [{ "key_code": "left_arrow" }],
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
@@ -516,14 +558,7 @@
|
|||||||
{
|
{
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "j",
|
"key_code": "j",
|
||||||
"modifiers": {
|
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
|
||||||
"mandatory": [
|
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_shift",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"to": [{ "key_code": "down_arrow" }],
|
"to": [{ "key_code": "down_arrow" }],
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
@@ -536,14 +571,7 @@
|
|||||||
{
|
{
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "k",
|
"key_code": "k",
|
||||||
"modifiers": {
|
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
|
||||||
"mandatory": [
|
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_shift",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"to": [{ "key_code": "up_arrow" }],
|
"to": [{ "key_code": "up_arrow" }],
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
@@ -556,14 +584,7 @@
|
|||||||
{
|
{
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "l",
|
"key_code": "l",
|
||||||
"modifiers": {
|
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
|
||||||
"mandatory": [
|
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_shift",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"to": [{ "key_code": "right_arrow" }],
|
"to": [{ "key_code": "right_arrow" }],
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
@@ -576,14 +597,7 @@
|
|||||||
{
|
{
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "f",
|
"key_code": "f",
|
||||||
"modifiers": {
|
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
|
||||||
"mandatory": [
|
|
||||||
"left_command",
|
|
||||||
"left_control",
|
|
||||||
"left_shift",
|
|
||||||
"left_option"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"to": [
|
"to": [
|
||||||
{
|
{
|
||||||
@@ -610,6 +624,14 @@
|
|||||||
"to": [{ "key_code": "left_alt" }]
|
"to": [{ "key_code": "left_alt" }]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"identifiers": {
|
||||||
|
"is_keyboard": true,
|
||||||
|
"product_id": 675,
|
||||||
|
"vendor_id": 5426
|
||||||
|
},
|
||||||
|
"ignore_vendor_events": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"name": "Default profile",
|
"name": "Default profile",
|
||||||
|
|||||||
Reference in New Issue
Block a user