Advertisement
betsu

Karabiner-Elements complex rule: cmd+w➡️cmd+c ctrl+w➡️cmd+x ctrl+y➡️cmd+v

Dec 11th, 2023
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 9.20 KB | None | 0 0
  1. {
  2.     "description": "cmd+w➡️cmd+c ctrl+w➡️cmd+x ctrl+y➡️cmd+v",
  3.     "manipulators": [
  4.         {
  5.             "conditions": [
  6.                 {
  7.                     "bundle_identifiers": [
  8.                         "^org\\.gnu\\.Emacs$",
  9.                         "^org\\.gnu\\.AquamacsEmacs$",
  10.                         "^org\\.gnu\\.Aquamacs$",
  11.                         "^org\\.pqrs\\.unknownapp\\.conkeror$",
  12.                         "^com\\.microsoft\\.rdc$",
  13.                         "^com\\.microsoft\\.rdc\\.",
  14.                         "^net\\.sf\\.cord$",
  15.                         "^com\\.thinomenon\\.RemoteDesktopConnection$",
  16.                         "^com\\.itap-mobile\\.qmote$",
  17.                         "^com\\.nulana\\.remotixmac$",
  18.                         "^com\\.p5sys\\.jump\\.mac\\.viewer$",
  19.                         "^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
  20.                         "^com\\.teamviewer\\.TeamViewer$",
  21.                         "^com\\.vmware\\.horizon$",
  22.                         "^com\\.2X\\.Client\\.Mac$",
  23.                         "^com\\.OpenText\\.Exceed-TurboX-Client$",
  24.                         "^com\\.realvnc\\.vncviewer$",
  25.                         "^com\\.citrix\\.receiver\\.icaviewer",
  26.                         "^com\\.apple\\.Terminal$",
  27.                         "^com\\.googlecode\\.iterm2$",
  28.                         "^co\\.zeit\\.hyperterm$",
  29.                         "^co\\.zeit\\.hyper$",
  30.                         "^io\\.alacritty$",
  31.                         "^org\\.alacritty$",
  32.                         "^net\\.kovidgoyal\\.kitty$",
  33.                         "^org\\.vim\\.",
  34.                         "^com\\.qvacua\\.VimR$",
  35.                         "^com\\.vmware\\.fusion$",
  36.                         "^com\\.vmware\\.horizon$",
  37.                         "^com\\.vmware\\.view$",
  38.                         "^com\\.parallels\\.desktop$",
  39.                         "^com\\.parallels\\.vm$",
  40.                         "^com\\.parallels\\.desktop\\.console$",
  41.                         "^org\\.virtualbox\\.app\\.VirtualBoxVM$",
  42.                         "^com\\.citrix\\.XenAppViewer$",
  43.                         "^com\\.vmware\\.proxyApp\\.",
  44.                         "^com\\.parallels\\.winapp\\.",
  45.                         "^com\\.utmapp\\.UTM$",
  46.                         "^org\\.x\\.X11$",
  47.                         "^com\\.apple\\.x11$",
  48.                         "^org\\.macosforge\\.xquartz\\.X11$",
  49.                         "^org\\.macports\\.X11$",
  50.                         "^com\\.sublimetext\\.",
  51.                         "^com\\.microsoft\\.VSCode$"
  52.                     ],
  53.                     "type": "frontmost_application_unless"
  54.                 }
  55.             ],
  56.             "from": {
  57.                 "key_code": "w",
  58.                 "modifiers": {
  59.                     "mandatory": [
  60.                         "control"
  61.                     ]
  62.                 }
  63.             },
  64.             "to": [
  65.                 {
  66.                     "key_code": "x",
  67.                     "modifiers": [
  68.                         "command"
  69.                     ]
  70.                 }
  71.             ],
  72.             "type": "basic"
  73.         },
  74.         {
  75.             "conditions": [
  76.                 {
  77.                     "bundle_identifiers": [
  78.                         "^org\\.gnu\\.Emacs$",
  79.                         "^org\\.gnu\\.AquamacsEmacs$",
  80.                         "^org\\.gnu\\.Aquamacs$",
  81.                         "^org\\.pqrs\\.unknownapp\\.conkeror$",
  82.                         "^com\\.microsoft\\.rdc$",
  83.                         "^com\\.microsoft\\.rdc\\.",
  84.                         "^net\\.sf\\.cord$",
  85.                         "^com\\.thinomenon\\.RemoteDesktopConnection$",
  86.                         "^com\\.itap-mobile\\.qmote$",
  87.                         "^com\\.nulana\\.remotixmac$",
  88.                         "^com\\.p5sys\\.jump\\.mac\\.viewer$",
  89.                         "^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
  90.                         "^com\\.teamviewer\\.TeamViewer$",
  91.                         "^com\\.vmware\\.horizon$",
  92.                         "^com\\.2X\\.Client\\.Mac$",
  93.                         "^com\\.OpenText\\.Exceed-TurboX-Client$",
  94.                         "^com\\.realvnc\\.vncviewer$",
  95.                         "^com\\.citrix\\.receiver\\.icaviewer",
  96.                         "^com\\.apple\\.Terminal$",
  97.                         "^com\\.googlecode\\.iterm2$",
  98.                         "^co\\.zeit\\.hyperterm$",
  99.                         "^co\\.zeit\\.hyper$",
  100.                         "^io\\.alacritty$",
  101.                         "^org\\.alacritty$",
  102.                         "^net\\.kovidgoyal\\.kitty$",
  103.                         "^org\\.vim\\.",
  104.                         "^com\\.qvacua\\.VimR$",
  105.                         "^com\\.vmware\\.fusion$",
  106.                         "^com\\.vmware\\.horizon$",
  107.                         "^com\\.vmware\\.view$",
  108.                         "^com\\.parallels\\.desktop$",
  109.                         "^com\\.parallels\\.vm$",
  110.                         "^com\\.parallels\\.desktop\\.console$",
  111.                         "^org\\.virtualbox\\.app\\.VirtualBoxVM$",
  112.                         "^com\\.citrix\\.XenAppViewer$",
  113.                         "^com\\.vmware\\.proxyApp\\.",
  114.                         "^com\\.parallels\\.winapp\\.",
  115.                         "^com\\.utmapp\\.UTM$",
  116.                         "^org\\.x\\.X11$",
  117.                         "^com\\.apple\\.x11$",
  118.                         "^org\\.macosforge\\.xquartz\\.X11$",
  119.                         "^org\\.macports\\.X11$",
  120.                         "^com\\.sublimetext\\.",
  121.                         "^com\\.microsoft\\.VSCode$"
  122.                     ],
  123.                     "type": "frontmost_application_unless"
  124.                 }
  125.             ],
  126.             "from": {
  127.                 "key_code": "y",
  128.                 "modifiers": {
  129.                     "mandatory": [
  130.                         "control"
  131.                     ]
  132.                 }
  133.             },
  134.             "to": [
  135.                 {
  136.                     "key_code": "v",
  137.                     "modifiers": [
  138.                         "command"
  139.                     ]
  140.                 }
  141.             ],
  142.             "type": "basic"
  143.         },
  144.         {
  145.             "conditions": [
  146.                 {
  147.                     "bundle_identifiers": [
  148.                         "^org\\.gnu\\.Emacs$",
  149.                         "^org\\.gnu\\.AquamacsEmacs$",
  150.                         "^org\\.gnu\\.Aquamacs$",
  151.                         "^org\\.pqrs\\.unknownapp\\.conkeror$",
  152.                         "^com\\.microsoft\\.rdc$",
  153.                         "^com\\.microsoft\\.rdc\\.",
  154.                         "^net\\.sf\\.cord$",
  155.                         "^com\\.thinomenon\\.RemoteDesktopConnection$",
  156.                         "^com\\.itap-mobile\\.qmote$",
  157.                         "^com\\.nulana\\.remotixmac$",
  158.                         "^com\\.p5sys\\.jump\\.mac\\.viewer$",
  159.                         "^com\\.p5sys\\.jump\\.mac\\.viewer\\.",
  160.                         "^com\\.teamviewer\\.TeamViewer$",
  161.                         "^com\\.vmware\\.horizon$",
  162.                         "^com\\.2X\\.Client\\.Mac$",
  163.                         "^com\\.OpenText\\.Exceed-TurboX-Client$",
  164.                         "^com\\.realvnc\\.vncviewer$",
  165.                         "^com\\.citrix\\.receiver\\.icaviewer",
  166.                         "^com\\.apple\\.Terminal$",
  167.                         "^com\\.googlecode\\.iterm2$",
  168.                         "^co\\.zeit\\.hyperterm$",
  169.                         "^co\\.zeit\\.hyper$",
  170.                         "^io\\.alacritty$",
  171.                         "^org\\.alacritty$",
  172.                         "^net\\.kovidgoyal\\.kitty$",
  173.                         "^org\\.vim\\.",
  174.                         "^com\\.qvacua\\.VimR$",
  175.                         "^com\\.vmware\\.fusion$",
  176.                         "^com\\.vmware\\.horizon$",
  177.                         "^com\\.vmware\\.view$",
  178.                         "^com\\.parallels\\.desktop$",
  179.                         "^com\\.parallels\\.vm$",
  180.                         "^com\\.parallels\\.desktop\\.console$",
  181.                         "^org\\.virtualbox\\.app\\.VirtualBoxVM$",
  182.                         "^com\\.citrix\\.XenAppViewer$",
  183.                         "^com\\.vmware\\.proxyApp\\.",
  184.                         "^com\\.parallels\\.winapp\\.",
  185.                         "^com\\.utmapp\\.UTM$",
  186.                         "^org\\.x\\.X11$",
  187.                         "^com\\.apple\\.x11$",
  188.                         "^org\\.macosforge\\.xquartz\\.X11$",
  189.                         "^org\\.macports\\.X11$",
  190.                         "^com\\.sublimetext\\.",
  191.                         "^com\\.microsoft\\.VSCode$"
  192.                     ],
  193.                     "type": "frontmost_application_unless"
  194.                 }
  195.             ],
  196.             "from": {
  197.                 "key_code": "w",
  198.                 "modifiers": {
  199.                     "mandatory": [
  200.                         "command"
  201.                     ]
  202.                 }
  203.             },
  204.             "to": [
  205.                 {
  206.                     "key_code": "c",
  207.                     "modifiers": [
  208.                         "command"
  209.                     ]
  210.                 }
  211.             ],
  212.             "type": "basic"
  213.         }
  214.     ]
  215. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement