Skip to content

Instantly share code, notes, and snippets.

@airstrike
Forked from jdleslie/citrix_ctrl_alt_win.json
Last active March 6, 2023 20:31
Show Gist options
  • Save airstrike/90aeb8579d4442ba1d653e170acd1a22 to your computer and use it in GitHub Desktop.
Save airstrike/90aeb8579d4442ba1d653e170acd1a22 to your computer and use it in GitHub Desktop.
Map Apple modifiers (Ctrl, Option, Command) to Windows modifiers (Ctrl, Win, Alt) in Citrix Workspace using Karabiner Elements, with working Alt+Tab and Windows key shortcuts
{
"title": "Citrix Receiver/Workspace shenanigans",
"rules": [
{
"description": "In Citrix, change left_option to Alt key via \"⌘⌥ Command (left)-Option\"",
"manipulators": [
{
"from": {
"key_code": "left_option",
"modifiers": { "optional": [ "any" ] }
},
"to": {
"key_code": "left_option",
"modifiers": [ "left_command" ]
},
"type": "basic",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
}
]
}, {
"description": "In Citrix, change right_option to Alt key via \"⌘⌥ Command (left)-Option\"",
"manipulators": [
{
"from": {
"key_code": "right_option",
"modifiers": { "optional": [ "any" ] }
},
"to": {
"key_code": "right_option",
"modifiers": [ "left_command" ]
},
"type": "basic",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
}
]
}, {
"description": "In Citrix, change left_command as well via \"Send Windows logo key using ⌘ Command (right)\"",
"manipulators": [
{
"from": {
"key_code": "left_command",
"modifiers": { "optional": [ "any" ] }
},
"to": {
"key_code": "right_command"
},
"type": "basic",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment