Skip to content

Instantly share code, notes, and snippets.

@siketyan
Created April 14, 2021 05:02
Show Gist options
  • Select an option

  • Save siketyan/2bc736bf27f028161062c0ade9843339 to your computer and use it in GitHub Desktop.

Select an option

Save siketyan/2bc736bf27f028161062c0ade9843339 to your computer and use it in GitHub Desktop.
US 配列の macOS から Windows へ RDP をいい感じにしたかった
{
"title": "RDP をいい感じにするルール",
"rules": [
{
"description": "Cmd 単押しで Alt,長押しで Ctrl",
"manipulators": [
{
"type": "basic",
"description": "LCmd 単押しで LAlt,長押しで LCtrl を送信",
"from": {
"key_code": "left_command"
},
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 200
},
"to": [
{
"key_code": "left_command",
"lazy": true
}
],
"to_if_held_down": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "left_option"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.microsoft\\.rdc\\.",
"^com\\.2X\\.Client\\.Mac"
]
}
]
},
{
"type": "basic",
"description": "RCmd 単押しで RAlt,長押しで RCtrl を送信",
"from": {
"key_code": "right_command"
},
"parameters": {
"basic.to_if_held_down_threshold_milliseconds": 200
},
"to": [
{
"key_code": "right_command",
"lazy": true
}
],
"to_if_held_down": [
{
"key_code": "right_control"
}
],
"to_if_alone": [
{
"key_code": "right_option"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.microsoft\\.rdc\\.",
"^com\\.2X\\.Client\\.Mac"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment