yqrashawn / GokuRakuJoudo

config karabiner with ease
GNU General Public License v3.0
1.16k stars 121 forks source link

Delay between sending keys? possible? #128

Closed Madd0g closed 2 years ago

Madd0g commented 3 years ago

I have this sequence of keys pressed:

[:!COreturn_or_enter [:!Ca :left_arrow :return_or_enter :up_arrow]]

any way to tell karabiner to wait between :left_arrow and :return_or_enter?

yqrashawn commented 2 years ago

Basically, there are two options

  1. use the delayed action (only able to delay once, check link below)
  2. use applescript

related issues: https://github.com/yqrashawn/GokuRakuJoudo/issues/75 https://github.com/yqrashawn/GokuRakuJoudo/issues/148#issuecomment-963789553

MuhammedZakir commented 2 years ago

If you really want to add a delay in to events, you can use vk_none with to.hold_down_milliseconds to create a delay.

https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/to/hold-down-milliseconds/

E.g. The below config wil send a, wait 1 second and then send b.

"to": [
  {
    "key_code": "a"
  },
  {
    "key_code": "vk_none",
    "hold_down_milliseconds": 1000
  }
  {
    "key_code": "b"
  }
]