Advertisement
Guest User

Untitled

a guest
Dec 12th, 2022
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. {
  2. "title": "Swap Command and Option in NoMachine",
  3. "rules": [
  4. {
  5. "description": "Swap Command and Option in NoMachine",
  6. "manipulators": [
  7. {
  8. "type": "basic",
  9. "from": {
  10. "key_code": "left_command",
  11. "modifiers": {
  12. "optional": [
  13. "control",
  14. "option",
  15. "shift",
  16. "fn",
  17. "caps_lock"
  18. ]
  19. }
  20. },
  21. "to": [
  22. {
  23. "key_code": "left_option"
  24. }
  25. ],
  26. "conditions": [
  27. {
  28. "type": "frontmost_application_if",
  29. "bundle_identifiers": [
  30. "^com\\.nomachine\\.nxdock$"
  31. ]
  32. }
  33. ]
  34. },
  35. {
  36. "type": "basic",
  37. "from": {
  38. "key_code": "left_option",
  39. "modifiers": {
  40. "optional": [
  41. "control",
  42. "command",
  43. "shift",
  44. "fn",
  45. "caps_lock"
  46. ]
  47. }
  48. },
  49. "to": [
  50. {
  51. "key_code": "left_command"
  52. }
  53. ],
  54. "conditions": [
  55. {
  56. "type": "frontmost_application_if",
  57. "bundle_identifiers": [
  58. "^com\\.nomachine\\.nxdock$"
  59. ]
  60. }
  61. ]
  62. },
  63. {
  64. "type": "basic",
  65. "from": {
  66. "key_code": "right_command",
  67. "modifiers": {
  68. "optional": [
  69. "control",
  70. "option",
  71. "shift",
  72. "fn",
  73. "caps_lock"
  74. ]
  75. }
  76. },
  77. "to": [
  78. {
  79. "key_code": "right_option"
  80. }
  81. ],
  82. "conditions": [
  83. {
  84. "type": "frontmost_application_if",
  85. "bundle_identifiers": [
  86. "^com\\.nomachine\\.nxdock$"
  87. ]
  88. }
  89. ]
  90. },
  91. {
  92. "type": "basic",
  93. "from": {
  94. "key_code": "right_option",
  95. "modifiers": {
  96. "optional": [
  97. "control",
  98. "command",
  99. "shift",
  100. "fn",
  101. "caps_lock"
  102. ]
  103. }
  104. },
  105. "to": [
  106. {
  107. "key_code": "right_command"
  108. }
  109. ],
  110. "conditions": [
  111. {
  112. "type": "frontmost_application_if",
  113. "bundle_identifiers": [
  114. "^com\\.nomachine\\.nxdock$"
  115. ]
  116. }
  117. ]
  118. }
  119. ]
  120. }
  121. ]
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement