Open nemonein opened 7 years ago
It's been a few months, but no answers. Is there anybody who can help me?
Hi. Judging by the message log from xev, looks like the problem mey be with an unwanted focus in-out window events added in between. They're probably added because of how global shortcuts on X11 desktop works. Momentary unfocus of whatever window is currently active. Xbindkeys program does use functions from xlib for that.
If you're sending your keys to the window using two shell commands, one after another, then some keys may get lost when the target window looses focus, for that short period of time. Try adding a delay at the moment Xbindkeys executes shell command, before xdotool begins sending it's keys to the active window: $ xdotool sleep 1.0 key --clearmodifiers Control_L+s
That causes xdotool to wait 1 second, before sending the keys. Which is, of course, unresponsive functionality but if it fixes things, try tweaking it to some lower value. N.b. --delay 0 switch in your original command was unnecessary, as it is for the interval between keystokes, in single command instead.
best.
@ikk00 Thanks. I tried, but it does not work. I'm not sure, but 'v' and 'x' are not working properly.
xdotool sleep 1 key --clearmodifiers Control_L+v
xdotool sleep 2 key --clearmodifiers Control_L+x
Hi. I'm using xdotool with xbindkeys, on Ubuntu 16.04. I used the latest version(v3.20160805.1) of xdotool. And I use US Dvorak keyboard. This caused this problem. Using US Qwerty keyboard works fine.
To make the story short, under US Dvorak keyboard, Control_L+v, and Control_L+x do not work. ............................................................
I set .xbindkeysrc like this.
"xdotool key --delay 0 --clearmodifiers Control_L+s"
works fine, however,"xdotool key --delay 0 --clearmodifiers Control_L+v"
do not send any signal.I tested this with xev, and here are the results.
"xdotool key --delay 0 --clearmodifiers Control_L+s"
You can see there are KeyPress/Release event for keycode 39('s') between the Control_L press/release events.
However,
"xdotool key --delay 0 --clearmodifiers Control_L+v"
There are no key event for the key 'v', between Control_L events.
.................................................................................................................
Is there a way to work around this, or can you find what causes this?