I want to use xdotool with xbindkeys but it does not work.
This is what I tried first:
"xdotool type a"
m:0x1 + c:50
Shift + Shift_L
this is not a duplicate as I have tried the solutions from other questions too:
"sleep 1 && xdotool type --delay 15 'a'"
m:0x1 + c:50
Shift + Shift_L
and
"xset r off; xdotool type --window 0 a; xset r on"
m:0x1 + c:50
Shift + Shift_L
I know that xbindkeys is working properly because I could execute echo test > /home/dalton/key.txt
with it.
Best Answer
The default for
xbindkeys
is to catchPress
event. It catchesShift + Shift_L
thenxdotool
generatea
key stroke. We get:Similar to pressing: Shift_R+Shift_L+a (in this order)
These solutions worked for me:
On Press event
On Release event
Also it is possible to use small pre-delay but that is not perfect method.
Reference: xbindkeys + xdotool timing problems