I am trying to setup xbindkeys
in Kubuntu, since I got a new mouse with some useless buttons. I was trying to bind the F5 key to the windows-logo button on my mouse, which I identified as c:134.
Unfortunately it does not seem to work. Here is what I do in .xbindkeysrc
"xte 'key F5'"
c:134
This does not work. However, if I type into a terminal: sleep 10; xte 'key F5'
and switch to another window, after 10 seconds the F5 key is correctly emulated (for example, it will refresh the current browser page).
It is not a problem of the key identification, either. This one will correctly launch Kate.
"kate"
c:134
I really don't get it, why xte won't emulate the key!
Any suggestions?
xdotool
(very similar to xte) or make a script with yourxte
commands and call that from xbindkeys.