Bashwy

mouse to change spaces

Apr 20th, 2022 (edited)
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 KB | None | 0 0
  1. {
  2. "description": "better external mouse",
  3. "manipulators": [
  4. {
  5. "from": {
  6. "pointing_button": "button3",
  7. "modifiers": {
  8. "optional": [
  9. "any"
  10. ]
  11. }
  12. },
  13. "parameters": {
  14. "basic.to_if_alone_timeout_milliseconds": 200,
  15. "basic.to_if_held_down_threshold_milliseconds": 200
  16. },
  17. "to_if_alone": [
  18. {
  19. "pointing_button": "button3"
  20. }
  21. ],
  22. "to_if_held_down": [
  23. {
  24. "set_variable": {
  25. "name": "pwr_b3",
  26. "value": 1
  27. }
  28. }
  29. ],
  30. "to_after_key_up": [
  31. {
  32. "set_variable": {
  33. "name": "pwr_b3",
  34. "value": 0
  35. }
  36. }
  37. ],
  38. "type": "basic"
  39. },
  40. {
  41. "conditions": [
  42. {
  43. "name": "pwr_b3",
  44. "type": "variable_if",
  45. "value": 1
  46. }
  47. ],
  48. "from": {
  49. "modifiers": {
  50. "optional": [
  51. "caps_lock"
  52. ]
  53. },
  54. "pointing_button": "button4"
  55. },
  56. "to": [
  57. {
  58. "key_code": "left_arrow",
  59. "modifiers": [
  60. "left_control"
  61. ]
  62. }
  63. ],
  64. "type": "basic"
  65. },
  66. {
  67. "conditions": [
  68. {
  69. "name": "pwr_b3",
  70. "type": "variable_if",
  71. "value": 1
  72. }
  73. ],
  74. "from": {
  75. "pointing_button": "button5",
  76. "modifiers": {
  77. "optional": [
  78. "caps_lock"
  79. ]
  80. }
  81. },
  82. "to": [
  83. {
  84. "key_code": "right_arrow",
  85. "modifiers": [
  86. "left_control"
  87. ]
  88. }
  89. ],
  90. "type": "basic"
  91. },
  92. {
  93. "conditions": [
  94. {
  95. "name": "pwr_b3",
  96. "type": "variable_if",
  97. "value": 1
  98. }
  99. ],
  100. "from": {
  101. "pointing_button": "button2",
  102. "modifiers": {
  103. "optional": [
  104. "caps_lock"
  105. ]
  106. }
  107. },
  108. "to": [
  109. {
  110. "apple_vendor_keyboard_key_code": "mission_control"
  111. }
  112. ],
  113. "type": "basic"
  114. }
  115. ]
  116. },
Add Comment
Please, Sign In to add comment