karabiner.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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": true,
  242. "is_pointing_device": false,
  243. "product_id": 1296,
  244. "vendor_id": 1204
  245. },
  246. "ignore": false,
  247. "manipulate_caps_lock_led": false,
  248. "simple_modifications": [
  249. {
  250. "from": {
  251. "key_code": "left_command"
  252. },
  253. "to": {
  254. "key_code": "left_option"
  255. }
  256. },
  257. {
  258. "from": {
  259. "key_code": "left_option"
  260. },
  261. "to": {
  262. "key_code": "left_command"
  263. }
  264. },
  265. {
  266. "from": {
  267. "key_code": "right_command"
  268. },
  269. "to": {
  270. "key_code": "right_option"
  271. }
  272. },
  273. {
  274. "from": {
  275. "key_code": "right_option"
  276. },
  277. "to": {
  278. "key_code": "right_command"
  279. }
  280. }
  281. ]
  282. },
  283. {
  284. "disable_built_in_keyboard_if_exists": false,
  285. "fn_function_keys": [],
  286. "identifiers": {
  287. "is_keyboard": false,
  288. "is_pointing_device": true,
  289. "product_id": 50475,
  290. "vendor_id": 1133
  291. },
  292. "ignore": true,
  293. "manipulate_caps_lock_led": false,
  294. "simple_modifications": []
  295. }
  296. ],
  297. "fn_function_keys": [
  298. {
  299. "from": {
  300. "key_code": "f1"
  301. },
  302. "to": {
  303. "consumer_key_code": "display_brightness_decrement"
  304. }
  305. },
  306. {
  307. "from": {
  308. "key_code": "f2"
  309. },
  310. "to": {
  311. "consumer_key_code": "display_brightness_increment"
  312. }
  313. },
  314. {
  315. "from": {
  316. "key_code": "f3"
  317. },
  318. "to": {
  319. "key_code": "mission_control"
  320. }
  321. },
  322. {
  323. "from": {
  324. "key_code": "f4"
  325. },
  326. "to": {
  327. "key_code": "launchpad"
  328. }
  329. },
  330. {
  331. "from": {
  332. "key_code": "f5"
  333. },
  334. "to": {
  335. "key_code": "illumination_decrement"
  336. }
  337. },
  338. {
  339. "from": {
  340. "key_code": "f6"
  341. },
  342. "to": {
  343. "key_code": "illumination_increment"
  344. }
  345. },
  346. {
  347. "from": {
  348. "key_code": "f7"
  349. },
  350. "to": {
  351. "consumer_key_code": "rewind"
  352. }
  353. },
  354. {
  355. "from": {
  356. "key_code": "f8"
  357. },
  358. "to": {
  359. "consumer_key_code": "play_or_pause"
  360. }
  361. },
  362. {
  363. "from": {
  364. "key_code": "f9"
  365. },
  366. "to": {
  367. "consumer_key_code": "fastforward"
  368. }
  369. },
  370. {
  371. "from": {
  372. "key_code": "f10"
  373. },
  374. "to": {
  375. "consumer_key_code": "mute"
  376. }
  377. },
  378. {
  379. "from": {
  380. "key_code": "f11"
  381. },
  382. "to": {
  383. "consumer_key_code": "volume_decrement"
  384. }
  385. },
  386. {
  387. "from": {
  388. "key_code": "f12"
  389. },
  390. "to": {
  391. "consumer_key_code": "volume_increment"
  392. }
  393. }
  394. ],
  395. "name": "Default profile",
  396. "selected": true,
  397. "simple_modifications": [],
  398. "virtual_hid_keyboard": {
  399. "country_code": 0,
  400. "mouse_key_xy_scale": 100
  401. }
  402. }
  403. ]
  404. }