Advertisement
Guest User

RK71_Karabiner

a guest
May 10th, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 15.52 KB | None | 0 0
  1. {
  2.   "title": "RK71: Activate media keys with Fn+<number>, Function keys with Fn+Right Shift+<number>, in Mac mode",
  3.   "rules": [
  4.     {
  5.       "description": "Fn+1 to Display Brightness Decrement",
  6.       "manipulators": [
  7.         {
  8.          "conditions": [
  9.            {
  10.               "type": "device_if",
  11.               "identifiers": [
  12.                 {
  13.                   "vendor_id": 1452,
  14.                   "product_id": 591,
  15.                   "description": "Royal Kludge RK71"
  16.                 }
  17.               ]
  18.            }
  19.          ],
  20.          "type": "basic",
  21.           "from": {
  22.             "key_code": "f1",
  23.             "modifiers": {
  24.                 "mandatory": [
  25.                     "fn"
  26.                 ]
  27.             }
  28.           },
  29.           "to": [
  30.             {
  31.               "key_code": "display_brightness_decrement"
  32.             }
  33.           ]
  34.         }
  35.       ]
  36.     },
  37.     {
  38.       "description": "Fn+2 to Display Brightness Increment",
  39.       "manipulators": [
  40.         {
  41.          "conditions": [
  42.            {
  43.               "type": "device_if",
  44.               "identifiers": [
  45.                 {
  46.                   "vendor_id": 1452,
  47.                   "product_id": 591,
  48.                   "description": "Royal Kludge RK71"
  49.                 }
  50.               ]
  51.            }
  52.          ],
  53.           "type": "basic",
  54.           "from": {
  55.             "key_code": "f2",
  56.             "modifiers": {
  57.                 "mandatory": [
  58.                     "fn"
  59.                 ]
  60.             }
  61.           },
  62.           "to": [
  63.             {
  64.               "key_code": "display_brightness_increment"
  65.             }
  66.           ]
  67.         }
  68.       ]
  69.     },
  70.     {
  71.       "description": "Fn+3 to Mission Control",
  72.       "manipulators": [
  73.         {
  74.          "conditions": [
  75.            {
  76.               "type": "device_if",
  77.               "identifiers": [
  78.                 {
  79.                   "vendor_id": 1452,
  80.                   "product_id": 591,
  81.                   "description": "Royal Kludge RK71"
  82.                 }
  83.               ]
  84.            }
  85.          ],
  86.           "type": "basic",
  87.           "from": {
  88.             "key_code": "f3",
  89.             "modifiers": {
  90.                 "mandatory": [
  91.                     "fn"
  92.                 ]
  93.             }
  94.           },
  95.           "to": [
  96.             {
  97.               "key_code": "mission_control"
  98.             }
  99.           ]
  100.         }
  101.       ]
  102.     },
  103.     {
  104.       "description": "Fn+4 to Launchpad",
  105.       "manipulators": [
  106.         {
  107.          "conditions": [
  108.            {
  109.               "type": "device_if",
  110.               "identifiers": [
  111.                 {
  112.                   "vendor_id": 1452,
  113.                   "product_id": 591,
  114.                   "description": "Royal Kludge RK71"
  115.                 }
  116.               ]
  117.            }
  118.          ],
  119.           "type": "basic",
  120.           "from": {
  121.             "key_code": "f4",
  122.             "modifiers": {
  123.                 "mandatory": [
  124.                     "fn"
  125.                 ]
  126.             }
  127.           },
  128.           "to": [
  129.             {
  130.               "key_code": "launchpad"
  131.             }
  132.           ]
  133.         }
  134.       ]
  135.     },
  136.     {
  137.       "description": "Fn+5 to Illumination Decrement",
  138.       "manipulators": [
  139.         {
  140.          "conditions": [
  141.            {
  142.               "type": "device_if",
  143.               "identifiers": [
  144.                 {
  145.                   "vendor_id": 1452,
  146.                   "product_id": 591,
  147.                   "description": "Royal Kludge RK71"
  148.                 }
  149.               ]
  150.            }
  151.          ],
  152.           "type": "basic",
  153.           "from": {
  154.             "key_code": "f5",
  155.             "modifiers": {
  156.                 "mandatory": [
  157.                     "fn"
  158.                 ]
  159.             }
  160.           },
  161.           "to": [
  162.             {
  163.               "key_code": "illumination_decrement"
  164.             }
  165.           ]
  166.         }
  167.       ]
  168.     },
  169.     {
  170.       "description": "Fn+6 to Illumination Increment",
  171.       "manipulators": [
  172.         {
  173.          "conditions": [
  174.            {
  175.               "type": "device_if",
  176.               "identifiers": [
  177.                 {
  178.                   "vendor_id": 1452,
  179.                   "product_id": 591,
  180.                   "description": "Royal Kludge RK71"
  181.                 }
  182.               ]
  183.            }
  184.          ],
  185.           "type": "basic",
  186.           "from": {
  187.             "key_code": "f6",
  188.             "modifiers": {
  189.                 "mandatory": [
  190.                     "fn"
  191.                 ]
  192.             }
  193.           },
  194.           "to": [
  195.             {
  196.               "key_code": "illumination_increment"
  197.             }
  198.           ]
  199.         }
  200.       ]
  201.     },
  202.     {
  203.       "description": "Fn+7 to Rewind",
  204.       "manipulators": [
  205.         {
  206.          "conditions": [
  207.            {
  208.               "type": "device_if",
  209.               "identifiers": [
  210.                 {
  211.                   "vendor_id": 1452,
  212.                   "product_id": 591,
  213.                   "description": "Royal Kludge RK71"
  214.                 }
  215.               ]
  216.            }
  217.          ],
  218.           "type": "basic",
  219.           "from": {
  220.             "key_code": "f7",
  221.             "modifiers": {
  222.                 "mandatory": [
  223.                     "fn"
  224.                 ]
  225.             }
  226.           },
  227.           "to": [
  228.             {
  229.               "key_code": "rewind"
  230.             }
  231.           ]
  232.         }
  233.       ]
  234.     },
  235.     {
  236.       "description": "Fn+8 to Play/Pause",
  237.       "manipulators": [
  238.         {
  239.          "conditions": [
  240.            {
  241.               "type": "device_if",
  242.               "identifiers": [
  243.                 {
  244.                   "vendor_id": 1452,
  245.                   "product_id": 591,
  246.                   "description": "Royal Kludge RK71"
  247.                 }
  248.               ]
  249.            }
  250.          ],
  251.           "type": "basic",
  252.           "from": {
  253.             "key_code": "f8",
  254.             "modifiers": {
  255.                 "mandatory": [
  256.                     "fn"
  257.                 ]
  258.             }
  259.           },
  260.           "to": [
  261.             {
  262.               "key_code": "play_or_pause"
  263.             }
  264.           ]
  265.         }
  266.       ]
  267.     },
  268.     {
  269.       "description": "Fn+9 to Fast Forward",
  270.       "manipulators": [
  271.         {
  272.          "conditions": [
  273.            {
  274.               "type": "device_if",
  275.               "identifiers": [
  276.                 {
  277.                   "vendor_id": 1452,
  278.                   "product_id": 591,
  279.                   "description": "Royal Kludge RK71"
  280.                 }
  281.               ]
  282.            }
  283.          ],
  284.           "type": "basic",
  285.           "from": {
  286.             "key_code": "f9",
  287.             "modifiers": {
  288.                 "mandatory": [
  289.                     "fn"
  290.                 ]
  291.             }
  292.           },
  293.           "to": [
  294.             {
  295.               "consumer_key_code": "fast_forward"
  296.             }
  297.           ]
  298.         }
  299.       ]
  300.     },
  301.     {
  302.       "description": "Fn+0 to Mute",
  303.       "manipulators": [
  304.         {
  305.          "conditions": [
  306.            {
  307.               "type": "device_if",
  308.               "identifiers": [
  309.                 {
  310.                   "vendor_id": 1452,
  311.                   "product_id": 591,
  312.                   "description": "Royal Kludge RK71"
  313.                 }
  314.               ]
  315.            }
  316.          ],
  317.           "type": "basic",
  318.           "from": {
  319.             "key_code": "f10",
  320.             "modifiers": {
  321.                 "mandatory": [
  322.                     "fn"
  323.                 ]
  324.             }
  325.           },
  326.           "to": [
  327.             {
  328.               "key_code": "mute"
  329.             }
  330.           ]
  331.         }
  332.       ]
  333.     },
  334.     {
  335.       "description": "Fn+- to Volume Decrement",
  336.       "manipulators": [
  337.         {
  338.          "conditions": [
  339.            {
  340.               "type": "device_if",
  341.               "identifiers": [
  342.                 {
  343.                   "vendor_id": 1452,
  344.                   "product_id": 591,
  345.                   "description": "Royal Kludge RK71"
  346.                 }
  347.               ]
  348.            }
  349.          ],
  350.           "type": "basic",
  351.           "from": {
  352.             "key_code": "f11",
  353.             "modifiers": {
  354.                 "mandatory": [
  355.                     "fn"
  356.                 ]
  357.             }
  358.           },
  359.           "to": [
  360.             {
  361.               "key_code": "volume_decrement"
  362.             }
  363.           ]
  364.         }
  365.       ]
  366.     },
  367.     {
  368.       "description": "Fn+= to Volume Increment",
  369.       "manipulators": [
  370.         {
  371.          "conditions": [
  372.            {
  373.               "type": "device_if",
  374.               "identifiers": [
  375.                 {
  376.                   "vendor_id": 1452,
  377.                   "product_id": 591,
  378.                   "description": "Royal Kludge RK71"
  379.                 }
  380.               ]
  381.            }
  382.          ],
  383.           "type": "basic",
  384.           "from": {
  385.             "key_code": "f12",
  386.             "modifiers": {
  387.                 "mandatory": [
  388.                     "fn"
  389.                 ]
  390.             }
  391.           },
  392.           "to": [
  393.             {
  394.               "key_code": "volume_increment"
  395.             }
  396.           ]
  397.         }
  398.       ]
  399.     },
  400.    
  401.     {
  402.       "description": "Fn+Right Shift+1 to F1",
  403.       "manipulators": [
  404.         {
  405.          "conditions": [
  406.            {
  407.               "type": "device_if",
  408.               "identifiers": [
  409.                 {
  410.                   "vendor_id": 1452,
  411.                   "product_id": 591,
  412.                   "description": "Royal Kludge RK71"
  413.                 }
  414.               ]
  415.            }
  416.          ],
  417.           "type": "basic",
  418.           "from": {
  419.             "key_code": "f1",
  420.             "modifiers": {
  421.                 "mandatory": [
  422.                     "right_shift",
  423.                     "fn"
  424.                 ]
  425.             }
  426.           },
  427.           "to": [
  428.             {
  429.               "key_code": "f1"
  430.             }
  431.           ]
  432.         }
  433.       ]
  434.     },
  435.     {
  436.       "description": "Fn+Right Shift+2 to F2",
  437.       "manipulators": [
  438.         {
  439.          "conditions": [
  440.            {
  441.               "type": "device_if",
  442.               "identifiers": [
  443.                 {
  444.                   "vendor_id": 1452,
  445.                   "product_id": 591,
  446.                   "description": "Royal Kludge RK71"
  447.                 }
  448.               ]
  449.            }
  450.          ],
  451.           "type": "basic",
  452.           "from": {
  453.             "key_code": "f2",
  454.             "modifiers": {
  455.                 "mandatory": [
  456.                     "right_shift",
  457.                     "fn"
  458.                 ]
  459.             }
  460.           },
  461.           "to": [
  462.             {
  463.               "key_code": "f2"
  464.             }
  465.           ]
  466.         }
  467.       ]
  468.     },
  469.     {
  470.       "description": "Fn+Right Shift+3 to F3",
  471.       "manipulators": [
  472.         {
  473.          "conditions": [
  474.            {
  475.               "type": "device_if",
  476.               "identifiers": [
  477.                 {
  478.                   "vendor_id": 1452,
  479.                   "product_id": 591,
  480.                   "description": "Royal Kludge RK71"
  481.                 }
  482.               ]
  483.            }
  484.          ],
  485.           "type": "basic",
  486.           "from": {
  487.             "key_code": "f3",
  488.             "modifiers": {
  489.                 "mandatory": [
  490.                     "right_shift",
  491.                     "fn"
  492.                 ]
  493.             }
  494.           },
  495.           "to": [
  496.             {
  497.               "key_code": "f3"
  498.             }
  499.           ]
  500.         }
  501.       ]
  502.     },
  503.     {
  504.       "description": "Fn+Right Shift+4 to F4",
  505.       "manipulators": [
  506.         {
  507.          "conditions": [
  508.            {
  509.               "type": "device_if",
  510.               "identifiers": [
  511.                 {
  512.                   "vendor_id": 1452,
  513.                   "product_id": 591,
  514.                   "description": "Royal Kludge RK71"
  515.                 }
  516.               ]
  517.            }
  518.          ],
  519.           "type": "basic",
  520.           "from": {
  521.             "key_code": "f4",
  522.             "modifiers": {
  523.                 "mandatory": [
  524.                     "right_shift",
  525.                     "fn"
  526.                 ]
  527.             }
  528.           },
  529.           "to": [
  530.             {
  531.               "key_code": "f4"
  532.             }
  533.           ]
  534.         }
  535.       ]
  536.     },
  537.     {
  538.       "description": "Fn+Right Shift+5 to F5",
  539.       "manipulators": [
  540.         {
  541.          "conditions": [
  542.            {
  543.               "type": "device_if",
  544.               "identifiers": [
  545.                 {
  546.                   "vendor_id": 1452,
  547.                   "product_id": 591,
  548.                   "description": "Royal Kludge RK71"
  549.                 }
  550.               ]
  551.            }
  552.          ],
  553.           "type": "basic",
  554.           "from": {
  555.             "key_code": "f5",
  556.             "modifiers": {
  557.                 "mandatory": [
  558.                     "right_shift",
  559.                     "fn"
  560.                 ]
  561.             }
  562.           },
  563.           "to": [
  564.             {
  565.               "key_code": "f5"
  566.             }
  567.           ]
  568.         }
  569.       ]
  570.     },
  571.     {
  572.       "description": "Fn+Right Shift+6 to F6",
  573.       "manipulators": [
  574.         {
  575.          "conditions": [
  576.            {
  577.               "type": "device_if",
  578.               "identifiers": [
  579.                 {
  580.                   "vendor_id": 1452,
  581.                   "product_id": 591,
  582.                   "description": "Royal Kludge RK71"
  583.                 }
  584.               ]
  585.            }
  586.          ],
  587.           "type": "basic",
  588.           "from": {
  589.             "key_code": "f6",
  590.             "modifiers": {
  591.                 "mandatory": [
  592.                     "right_shift",
  593.                     "fn"
  594.                 ]
  595.             }
  596.           },
  597.           "to": [
  598.             {
  599.               "key_code": "f6"
  600.             }
  601.           ]
  602.         }
  603.       ]
  604.     },
  605.     {
  606.       "description": "Fn+Right Shift+7 to F7",
  607.       "manipulators": [
  608.         {
  609.           "type": "basic",
  610.          "conditions": [
  611.            {
  612.               "type": "device_if",
  613.               "identifiers": [
  614.                 {
  615.                   "vendor_id": 1452,
  616.                   "product_id": 591,
  617.                   "description": "Royal Kludge RK71"
  618.                 }
  619.               ]
  620.            }
  621.          ],
  622.           "from": {
  623.             "key_code": "f7",
  624.             "modifiers": {
  625.                 "mandatory": [
  626.                     "right_shift",
  627.                     "fn"
  628.                 ]
  629.             }
  630.           },
  631.           "to": [
  632.             {
  633.               "key_code": "f7"
  634.             }
  635.           ]
  636.         }
  637.       ]
  638.     },
  639.     {
  640.       "description": "Fn+Right Shift+8 to F8",
  641.       "manipulators": [
  642.         {
  643.          "conditions": [
  644.            {
  645.               "type": "device_if",
  646.               "identifiers": [
  647.                 {
  648.                   "vendor_id": 1452,
  649.                   "product_id": 591,
  650.                   "description": "Royal Kludge RK71"
  651.                 }
  652.               ]
  653.            }
  654.          ],
  655.           "type": "basic",
  656.           "from": {
  657.             "key_code": "f8",
  658.             "modifiers": {
  659.                 "mandatory": [
  660.                     "right_shift",
  661.                     "fn"
  662.                 ]
  663.             }
  664.           },
  665.           "to": [
  666.             {
  667.               "key_code": "f8"
  668.             }
  669.           ]
  670.         }
  671.       ]
  672.     },
  673.     {
  674.       "description": "Fn+Right Shift+9 to F9",
  675.       "manipulators": [
  676.         {
  677.          "conditions": [
  678.            {
  679.               "type": "device_if",
  680.               "identifiers": [
  681.                 {
  682.                   "vendor_id": 1452,
  683.                   "product_id": 591,
  684.                   "description": "Royal Kludge RK71"
  685.                 }
  686.               ]
  687.            }
  688.          ],
  689.           "type": "basic",
  690.           "from": {
  691.             "key_code": "f9",
  692.             "modifiers": {
  693.                 "mandatory": [
  694.                     "right_shift",
  695.                     "fn"
  696.                 ]
  697.             }
  698.           },
  699.           "to": [
  700.             {
  701.               "key_code": "f9"
  702.             }
  703.           ]
  704.         }
  705.       ]
  706.     },
  707.     {
  708.       "description": "Fn+Right Shift+0 to F10",
  709.       "manipulators": [
  710.         {
  711.          "conditions": [
  712.            {
  713.               "type": "device_if",
  714.               "identifiers": [
  715.                 {
  716.                   "vendor_id": 1452,
  717.                   "product_id": 591,
  718.                   "description": "Royal Kludge RK71"
  719.                 }
  720.               ]
  721.            }
  722.          ],
  723.           "type": "basic",
  724.           "from": {
  725.             "key_code": "f10",
  726.             "modifiers": {
  727.                 "mandatory": [
  728.                     "right_shift",
  729.                     "fn"
  730.                 ]
  731.             }
  732.           },
  733.           "to": [
  734.             {
  735.               "key_code": "f10"
  736.             }
  737.           ]
  738.         }
  739.       ]
  740.     },
  741.     {
  742.       "description": "Fn+Right Shift+- to F11",
  743.       "manipulators": [
  744.         {
  745.          "conditions": [
  746.            {
  747.               "type": "device_if",
  748.               "identifiers": [
  749.                 {
  750.                   "vendor_id": 1452,
  751.                   "product_id": 591,
  752.                   "description": "Royal Kludge RK71"
  753.                 }
  754.               ]
  755.            }
  756.          ],
  757.           "type": "basic",
  758.           "from": {
  759.             "key_code": "f11",
  760.             "modifiers": {
  761.                 "mandatory": [
  762.                     "right_shift",
  763.                     "fn"
  764.                 ]
  765.             }
  766.           },
  767.           "to": [
  768.             {
  769.               "key_code": "f11"
  770.             }
  771.           ]
  772.         }
  773.       ]
  774.     },
  775.     {
  776.       "description": "Fn+Right Shift+= to F12",
  777.       "manipulators": [
  778.         {
  779.          "conditions": [
  780.            {
  781.               "type": "device_if",
  782.               "identifiers": [
  783.                 {
  784.                   "vendor_id": 1452,
  785.                   "product_id": 591,
  786.                   "description": "Royal Kludge RK71"
  787.                 }
  788.               ]
  789.            }
  790.          ],
  791.           "type": "basic",
  792.           "from": {
  793.             "key_code": "f12",
  794.             "modifiers": {
  795.                 "mandatory": [
  796.                     "right_shift",
  797.                     "fn"
  798.                 ]
  799.             }
  800.           },
  801.           "to": [
  802.             {
  803.               "key_code": "f12"
  804.             }
  805.           ]
  806.         }
  807.       ]
  808.     },
  809.    
  810.     {
  811.       "description": "Disable Insert Key",
  812.       "manipulators": [
  813.         {
  814.          "conditions": [
  815.            {
  816.               "type": "device_if",
  817.               "identifiers": [
  818.                 {
  819.                   "vendor_id": 1452,
  820.                   "product_id": 591,
  821.                   "description": "Royal Kludge RK71"
  822.                 }
  823.               ]
  824.            }
  825.          ],
  826.           "type": "basic",
  827.           "from": {
  828.             "key_code": "insert",
  829.             "modifiers": {
  830.               "optional": "any"
  831.             }
  832.           }
  833.         }
  834.       ]
  835.     },
  836.     {
  837.       "description": "Disable Pause Key",
  838.       "manipulators": [
  839.         {
  840.          "conditions": [
  841.            {
  842.               "type": "device_if",
  843.               "identifiers": [
  844.                 {
  845.                   "vendor_id": 1452,
  846.                   "product_id": 591,
  847.                   "description": "Royal Kludge RK71"
  848.                 }
  849.               ]
  850.            }
  851.          ],
  852.           "type": "basic",
  853.           "from": {
  854.             "key_code": "pause",
  855.             "modifiers": {
  856.               "optional": "any"
  857.             }
  858.           }
  859.         }
  860.       ]
  861.     }
  862.  
  863.   ]
  864. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement