Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race condition between xdotool and user's finger when autotyping #62

Open
CarloDePieri opened this issue Jan 25, 2021 · 1 comment
Open

Comments

@CarloDePieri
Copy link

Hi! Let me start by thanking you for the script! Now, this is a strange one...

I was facing an odd behavior when pressing alt+1/2/3 for autotyping: sometimes, half the characters were garbage; sometimes, apparently random keys got pressed (like esc, enter, etc).
It took me a while to understand what was happening: when xdotool begin to input characters, the user thumb may still be resting on the alt key, resulting in strange inputs.

Now, I'm guessing that this sleep

sleep 0.3

is meant to allow the transition to the window under rofi, but it could be tweaked to account for (apparently) slooooow users like myself... maybe give an option to add n ms to that delay? Or maybe simply having this issue to document this will be enough.

wwalker added a commit to wwalker/bitwarden-rofi that referenced this issue Sep 18, 2021
@wwalker
Copy link
Contributor

wwalker commented Sep 18, 2021

adding --clearmodifiers to the xdotool command arguments fixes the problem of the Alt key still being pressed when xdotool starts typing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants