Advertisement
Guest User

Karabiner Remap

a guest
Oct 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.71 KB | None | 0 0
  1. {
  2.     "title": "Delete word when both shift keys pressed 2x",
  3.     "rules": [
  4.     {
  5.         "description": "Delete word when both shift keys pressed 2x",
  6.         "manipulators": [
  7.         {
  8.             "type": "basic",
  9.             "from": {
  10.                 "simultaneous": [
  11.                     {
  12.                         "key_code": "left_shift"
  13.                     },
  14.                     {
  15.                         "key_code": "right_shift"
  16.                     }
  17.                 ],
  18.                 "modifiers": {
  19.                     "optional": [
  20.                         "any"
  21.                     ]
  22.                 }
  23.             },
  24.             "to": [
  25.                 {
  26.                     "key_code": "delete_or_backspace"
  27.                 }
  28.             ],
  29.             "conditions": [
  30.                 {
  31.                     "type": "variable_if",
  32.                     "name": "both_shift pressed",
  33.                     "value": 1
  34.                 }
  35.             ]
  36.         },
  37.  
  38.         {
  39.             "type": "basic",
  40.             "from": {
  41.                 "simultaneous": [
  42.                     {
  43.                         "key_code": "left_shift"
  44.                     },
  45.                     {
  46.                         "key_code": "right_shift"
  47.                     }
  48.                 ],
  49.                 "modifiers": {
  50.                     "optional": [
  51.                         "any"
  52.                     ]
  53.                 }
  54.             },
  55.             "to": [
  56.                 {
  57.                     "set_variable": {
  58.                         "name": "both_shift pressed",
  59.                         "value": 1
  60.                     }
  61.                 },
  62.                 {
  63.                     "key_code": "left_shift"
  64.                 },
  65.                 {
  66.                     "key_code": "right_shift"
  67.                 }
  68.             ],
  69.             "to_delayed_action": {
  70.                 "to_if_invoked": [
  71.                     {
  72.                         "set_variable": {
  73.                             "name": "both_shift pressed",
  74.                             "value": 0
  75.                         }
  76.                     }
  77.                 ],
  78.                 "to_if_canceled": [
  79.                     {
  80.                         "set_variable": {
  81.                             "name": "both_shift pressed",
  82.                             "value": 0
  83.                         }
  84.                     }
  85.                 ]
  86.             }
  87.         }
  88.         ]
  89.     }
  90.     ]
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement