Skip to content

Instantly share code, notes, and snippets.

@nateyoder
Forked from jdleslie/citrix_ctrl_alt_win.json
Last active August 11, 2023 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nateyoder/b76d211df35e752eb9a6db0fc04a1d1c to your computer and use it in GitHub Desktop.
Save nateyoder/b76d211df35e752eb9a6db0fc04a1d1c to your computer and use it in GitHub Desktop.
Citrix Workspace (ctrl=ctrl, alt=left cmd, win=right cmd, special characters unmodified=false)

Load these files using karabiner://karabiner/assets/complex_modifications/import?url= with these links.

(use ctrl + click)...

citrix_mac_mac

citrix_mac_win

https://genesy.github.io/karabiner-complex-rules-generator/ https://github.com/JoshuaManuel/Karabiner-Elements-Key-List https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/from/modifiers/

General format: karabiner://karabiner/assets/complex_modifications/import?url=

Note that sometime the raw files can take a while to update in which case specifically listing the revision can help. karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/nateyoder/b76d211df35e752eb9a6db0fc04a1d1c/raw/89fd95cf13912bfb768e9a8ce7f684552b4cc21c/citrix_mac_mac.json

{
"title": "Citrix (ctrl=ctrl, alt=left cmd, win=right cmd) for Ctrl, Alt, Win",
"rules": [
{
"description": "In Citrix, change left_option to Alt via \"Command (left)\"",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
}
]
},
{
"description": "In Citrix, change right_option to Alt via left_command",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
}
]
},
{
"description": "NOT WORKING - In Citrix, map l + left_command to l + left_control",
"manipulators": [
{
"type": "basic",
"from": {
"simultaneous": [
{
"key_code": "l"
},
{
"key_code": "left_gui"
}
]
},
"to": [
{
"repeat": false,
"key_code": "l",
"modifiers": [
"left_control"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
}
]
},
{
"description": "In Citrix, change left_command to \"Send Windows logo key using ⌘ Command (right)\"",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_command"
]
}
},
"to": [
{
"key_code": "l",
"modifiers": [
"left_control"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
}
]
}
]
}
{
"title": "Citrix (ctrl=ctrl, alt=left cmd, win=right cmd) for Ctrl, Win, Alt",
"rules": [
{
"description": "In Citrix, change right_command to Alt via \"⌘ Command (left)\"",
"manipulators": [
{
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": {
"key_code": "left_command"
},
"type": "basic",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.citrix\\.XenAppViewer$",
"^com\\.citrix\\.receiver\\.icaviewer\\.mac$"
]
}
]
}
]
},
{
"description": "In Citrix, change left_option to Win via \"⌘ Command (right)\"",
"manipulators": [
{
"from": {
"key_code": "left_option",
"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$"
]
}
]
}
]
},
{
"description": "In Citrix, change right_option to Win via \"⌘ Command (right)\"",
"manipulators": [
{
"from": {
"key_code": "right_option",
"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