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:
I have a script which opens dzen2 and accepts a single key (and then does something and exits). If I use event string:
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:
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?