fusuma-plugin-keypress
fusuma-plugin-keypress copied to clipboard
Separate threshold/interval for keypress commands
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).