karabiner.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. {
  2. "global": {
  3. "check_for_updates_on_startup": true,
  4. "show_in_menu_bar": false,
  5. "show_profile_name_in_menu_bar": false
  6. },
  7. "profiles": [
  8. {
  9. "complex_modifications": {
  10. "parameters": {
  11. "basic.simultaneous_threshold_milliseconds": 50,
  12. "basic.to_delayed_action_delay_milliseconds": 500,
  13. "basic.to_if_alone_timeout_milliseconds": 1000,
  14. "basic.to_if_held_down_threshold_milliseconds": 500,
  15. "mouse_motion_to_scroll.speed": 100
  16. },
  17. "rules": [
  18. {
  19. "description": "Quit application by pressing command-q twice",
  20. "manipulators": [
  21. {
  22. "conditions": [
  23. {
  24. "name": "command-q",
  25. "type": "variable_if",
  26. "value": 1
  27. }
  28. ],
  29. "from": {
  30. "key_code": "q",
  31. "modifiers": {
  32. "mandatory": [
  33. "command"
  34. ],
  35. "optional": [
  36. "caps_lock"
  37. ]
  38. }
  39. },
  40. "to": [
  41. {
  42. "key_code": "q",
  43. "modifiers": "left_command"
  44. }
  45. ],
  46. "type": "basic"
  47. },
  48. {
  49. "from": {
  50. "key_code": "q",
  51. "modifiers": {
  52. "mandatory": [
  53. "command"
  54. ],
  55. "optional": [
  56. "caps_lock"
  57. ]
  58. }
  59. },
  60. "to": [
  61. {
  62. "set_variable": {
  63. "name": "command-q",
  64. "value": 1
  65. }
  66. }
  67. ],
  68. "to_delayed_action": {
  69. "to_if_canceled": [
  70. {
  71. "set_variable": {
  72. "name": "command-q",
  73. "value": 0
  74. }
  75. }
  76. ],
  77. "to_if_invoked": [
  78. {
  79. "set_variable": {
  80. "name": "command-q",
  81. "value": 0
  82. }
  83. }
  84. ]
  85. },
  86. "type": "basic"
  87. }
  88. ]
  89. },
  90. {
  91. "description": "Minimise application by pressing command-m twice",
  92. "manipulators": [
  93. {
  94. "conditions": [
  95. {
  96. "name": "command-m",
  97. "type": "variable_if",
  98. "value": 1
  99. }
  100. ],
  101. "from": {
  102. "key_code": "m",
  103. "modifiers": {
  104. "mandatory": [
  105. "command"
  106. ],
  107. "optional": [
  108. "caps_lock"
  109. ]
  110. }
  111. },
  112. "to": [
  113. {
  114. "key_code": "m",
  115. "modifiers": "left_command"
  116. }
  117. ],
  118. "type": "basic"
  119. },
  120. {
  121. "from": {
  122. "key_code": "m",
  123. "modifiers": {
  124. "mandatory": [
  125. "command"
  126. ],
  127. "optional": [
  128. "caps_lock"
  129. ]
  130. }
  131. },
  132. "to": [
  133. {
  134. "set_variable": {
  135. "name": "command-m",
  136. "value": 1
  137. }
  138. }
  139. ],
  140. "to_delayed_action": {
  141. "to_if_canceled": [
  142. {
  143. "set_variable": {
  144. "name": "command-m",
  145. "value": 0
  146. }
  147. }
  148. ],
  149. "to_if_invoked": [
  150. {
  151. "set_variable": {
  152. "name": "command-m",
  153. "value": 0
  154. }
  155. }
  156. ]
  157. },
  158. "type": "basic"
  159. }
  160. ]
  161. }
  162. ]
  163. },
  164. "devices": [
  165. {
  166. "disable_built_in_keyboard_if_exists": false,
  167. "fn_function_keys": [],
  168. "identifiers": {
  169. "is_keyboard": true,
  170. "is_pointing_device": false,
  171. "product_id": 50475,
  172. "vendor_id": 1133
  173. },
  174. "ignore": true,
  175. "manipulate_caps_lock_led": false,
  176. "simple_modifications": []
  177. },
  178. {
  179. "disable_built_in_keyboard_if_exists": false,
  180. "fn_function_keys": [],
  181. "identifiers": {
  182. "is_keyboard": true,
  183. "is_pointing_device": false,
  184. "product_id": 635,
  185. "vendor_id": 1452
  186. },
  187. "ignore": false,
  188. "manipulate_caps_lock_led": true,
  189. "simple_modifications": []
  190. },
  191. {
  192. "disable_built_in_keyboard_if_exists": false,
  193. "fn_function_keys": [],
  194. "identifiers": {
  195. "is_keyboard": true,
  196. "is_pointing_device": false,
  197. "product_id": 257,
  198. "vendor_id": 1204
  199. },
  200. "ignore": false,
  201. "manipulate_caps_lock_led": false,
  202. "simple_modifications": [
  203. {
  204. "from": {
  205. "key_code": "left_command"
  206. },
  207. "to": {
  208. "key_code": "left_option"
  209. }
  210. },
  211. {
  212. "from": {
  213. "key_code": "left_option"
  214. },
  215. "to": {
  216. "key_code": "left_command"
  217. }
  218. },
  219. {
  220. "from": {
  221. "key_code": "right_command"
  222. },
  223. "to": {
  224. "key_code": "right_option"
  225. }
  226. },
  227. {
  228. "from": {
  229. "key_code": "right_option"
  230. },
  231. "to": {
  232. "key_code": "right_command"
  233. }
  234. }
  235. ]
  236. },
  237. {
  238. "disable_built_in_keyboard_if_exists": false,
  239. "fn_function_keys": [],
  240. "identifiers": {
  241. "is_keyboard": false,
  242. "is_pointing_device": true,
  243. "product_id": 50475,
  244. "vendor_id": 1133
  245. },
  246. "ignore": true,
  247. "manipulate_caps_lock_led": false,
  248. "simple_modifications": []
  249. }
  250. ],
  251. "fn_function_keys": [
  252. {
  253. "from": {
  254. "key_code": "f1"
  255. },
  256. "to": {
  257. "consumer_key_code": "display_brightness_decrement"
  258. }
  259. },
  260. {
  261. "from": {
  262. "key_code": "f2"
  263. },
  264. "to": {
  265. "consumer_key_code": "display_brightness_increment"
  266. }
  267. },
  268. {
  269. "from": {
  270. "key_code": "f3"
  271. },
  272. "to": {
  273. "key_code": "mission_control"
  274. }
  275. },
  276. {
  277. "from": {
  278. "key_code": "f4"
  279. },
  280. "to": {
  281. "key_code": "launchpad"
  282. }
  283. },
  284. {
  285. "from": {
  286. "key_code": "f5"
  287. },
  288. "to": {
  289. "key_code": "illumination_decrement"
  290. }
  291. },
  292. {
  293. "from": {
  294. "key_code": "f6"
  295. },
  296. "to": {
  297. "key_code": "illumination_increment"
  298. }
  299. },
  300. {
  301. "from": {
  302. "key_code": "f7"
  303. },
  304. "to": {
  305. "consumer_key_code": "rewind"
  306. }
  307. },
  308. {
  309. "from": {
  310. "key_code": "f8"
  311. },
  312. "to": {
  313. "consumer_key_code": "play_or_pause"
  314. }
  315. },
  316. {
  317. "from": {
  318. "key_code": "f9"
  319. },
  320. "to": {
  321. "consumer_key_code": "fastforward"
  322. }
  323. },
  324. {
  325. "from": {
  326. "key_code": "f10"
  327. },
  328. "to": {
  329. "consumer_key_code": "mute"
  330. }
  331. },
  332. {
  333. "from": {
  334. "key_code": "f11"
  335. },
  336. "to": {
  337. "consumer_key_code": "volume_decrement"
  338. }
  339. },
  340. {
  341. "from": {
  342. "key_code": "f12"
  343. },
  344. "to": {
  345. "consumer_key_code": "volume_increment"
  346. }
  347. }
  348. ],
  349. "name": "Default profile",
  350. "selected": true,
  351. "simple_modifications": [],
  352. "virtual_hid_keyboard": {
  353. "country_code": 0,
  354. "mouse_key_xy_scale": 100
  355. }
  356. }
  357. ]
  358. }