add DRY mode, dropping drian didnt help flap so much

master
bel 2022-04-12 21:58:52 -06:00
parent 534bb42c06
commit 5dca6be2b3
2 changed files with 5 additions and 1 deletions

View File

@ -11,10 +11,14 @@ def tap(keycode):
up(keycode)
def down(keycode):
if environ.get("DRY"):
return
fake_input(_display, X.KeyPress, keycode)
_display.sync()
def up(keycode):
if environ.get("DRY"):
return
fake_input(_display, X.KeyRelease, keycode)
_display.sync()

View File

@ -35,7 +35,7 @@ python3 ./state_to_buttons.py &
| python3 ./stream_to_state.py \
-n 1 \
-m .25 \
-r .3
-r .1
) &
while true; do