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

Does not grabkeys sometimes. #53

Open
jtgd opened this issue Feb 20, 2020 · 0 comments
Open

Does not grabkeys sometimes. #53

jtgd opened this issue Feb 20, 2020 · 0 comments

Comments

@jtgd
Copy link

jtgd commented Feb 20, 2020

I have a script which opens dzen2 and accepts a single key (and then does something and exits). If I use event string:

entertitle=grabkeys;enterslave=grabkeys;onstart=uncollapse,grabkeys

then it works fine when I invoke the script from a shell. But when I invoke the script from xbindkeys, it does not do the grabkeys. I have to manually
move the mouse out and into the window (activating enterslave/entertitle) to get it to read the key. My kludge fix was to do this:

entertitle=grabkeys;enterslave=grabkeys;onstart=uncollapse,grabkeys,exec:xdotool mousemove 960 0 sleep 0.2 mousemove 900 35

which moves it for me (activating enterslave/entertitle). The sleep is required. Sleeping 0.1 does not work.

So I wonder if this a bug in the program, or is there something I did wrong regarding grabkeys such that it did not work from xbindkeys?

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

1 participant