fusuma-plugin-keypress icon indicating copy to clipboard operation
fusuma-plugin-keypress copied to clipboard

Separate threshold/interval for keypress commands

Open ls-1N opened this issue 4 years ago • 7 comments

It would be nice extra feature to be able to adjust the threshold and interval separately for each of the keypress commands.

So that e.g. without keypress you use one set of interval and threshold and for keypress LEFTCTRL you use another set of interval and threshold and another one for LEFTMETA.

Hoped this would work like that:

swipe:
  3:
    right:
      command: "xdotool click 9" # History forward
      keypress:
        LEFTCTRL:
         command: "xdotool key --clearmodifiers XF86AudioRaiseVolume"
         interval: 0.1
         threshold: 0.1
    left:
      command: "xdotool click 8" # History back
      keypress:
        LEFTCTRL:
          command: "xdotool key --clearmodifiers XF86AudioLowerVolume"
          interval: 0.1
          threshold: 0.1

Actually interval/threshold only work if I move them to the same indentation level as keypress, in which case they also apply to the history back and history forwards (which is unwanted in this case).

ls-1N avatar May 09 '20 13:05 ls-1N