You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
4.2 KiB

  1. {
  2. "title": "RS",
  3. "rules": [{
  4. "description": "CapsLock to Escape / Control Mod-Tap",
  5. "manipulators": [{
  6. "type": "basic",
  7. "from": {
  8. "key_code": "caps_lock",
  9. "modifiers": {
  10. "optional": ["any"]
  11. }
  12. },
  13. "to": [{"key_code": "left_control"}],
  14. "to_if_alone": [{"key_code": "escape"}]
  15. }]
  16. },
  17. {
  18. "description": "Right-Shift / Enter Mod-Tap",
  19. "manipulators": [{
  20. "type": "basic",
  21. "from": {
  22. "key_code": "right_shift",
  23. "modifiers": {
  24. "optional": ["any"]
  25. }
  26. },
  27. "to": [{"key_code": "right_shift"}],
  28. "to_if_alone": [{"key_code": "return_or_enter"}]
  29. }]
  30. },
  31. {
  32. "description": "Right-Command / Backspace Mod-Tap",
  33. "manipulators": [{
  34. "type": "basic",
  35. "from": {
  36. "key_code": "right_command",
  37. "modifiers": {
  38. "optional": ["any"]
  39. }
  40. },
  41. "to": [{"key_code": "right_command"}],
  42. "to_if_alone": [{"key_code": "delete_or_backspace"}]
  43. }]
  44. },
  45. {
  46. "description": "Right-Command Accents",
  47. "manipulators": [
  48. {
  49. "type": "basic",
  50. "from": {
  51. "key_code": "a",
  52. "modifiers": {
  53. "mandatory": ["right_command"],
  54. "optional": ["left_shift", "right_shift"]
  55. }
  56. },
  57. "to": [
  58. {"key_code": "grave_accent_and_tilde", "modifiers": ["left_option"]},
  59. {"key_code": "a"}
  60. ]
  61. }]
  62. },
  63. {
  64. "description": "Right Command Navigation",
  65. "manipulators": [{
  66. "type": "basic",
  67. "from": {
  68. "key_code": "j",
  69. "modifiers": {
  70. "mandatory": ["right_command"],
  71. "optional": ["any"]
  72. }
  73. },
  74. "to": [{"key_code": "left_arrow"}]
  75. },
  76. {
  77. "type": "basic",
  78. "from": {
  79. "key_code": "k",
  80. "modifiers": {
  81. "mandatory": ["right_command"],
  82. "optional": ["any"]
  83. }
  84. },
  85. "to": [{"key_code": "down_arrow"}]
  86. },
  87. {
  88. "type": "basic",
  89. "from": {
  90. "key_code": "i",
  91. "modifiers": {
  92. "mandatory": ["right_command"],
  93. "optional": ["any"]
  94. }
  95. },
  96. "to": [{"key_code": "up_arrow"}]
  97. },
  98. {
  99. "type": "basic",
  100. "from": {
  101. "key_code": "l",
  102. "modifiers": {
  103. "mandatory": ["right_command"],
  104. "optional": ["any"]
  105. }
  106. },
  107. "to": [{"key_code": "right_arrow"}]
  108. },
  109. {
  110. "type": "basic",
  111. "from": {
  112. "key_code": "e",
  113. "modifiers": {
  114. "mandatory": ["right_command"],
  115. "optional": ["any"]
  116. }
  117. },
  118. "to": [{"key_code": "page_up"}]
  119. },
  120. {
  121. "type": "basic",
  122. "from": {
  123. "key_code": "d",
  124. "modifiers": {
  125. "mandatory": ["right_command"],
  126. "optional": ["any"]
  127. }
  128. },
  129. "to": [{"key_code": "page_down"}]
  130. },
  131. {
  132. "type": "basic",
  133. "from": {
  134. "key_code": "s",
  135. "modifiers": {
  136. "mandatory": ["right_command"],
  137. "optional": ["any"]
  138. }
  139. },
  140. "to": [{"key_code": "home"}]
  141. },
  142. {
  143. "type": "basic",
  144. "from": {
  145. "key_code": "f",
  146. "modifiers": {
  147. "mandatory": ["right_command"],
  148. "optional": ["any"]
  149. }
  150. },
  151. "to": [{"key_code": "end"}]
  152. }]
  153. }]
  154. }