I have tried a number of options to reload xbindkeys after changing the configuration file (my configuration file is located at ~/.xbindkeysrc). Nothing seems to work. The configuration file should be reloading automatically after a change according to the man page. How can I force a reload of the file? In Arch Linux it appears you can use xbindkeys --poll-rc
to reload the configuration but this is not working for me in Ubuntu.
I have a Logitech M720 Mouse that I'm hoping to bind the side button (usually page forward) to the middle click button - something that I've done on my Windows with Logitech Options.
After researching, I've found that I will need to do it via xbindkeys
and xautomation
.
I tested out the key presses with xev
and found that the side button is button 9
, and middle scrollwheel button is button 2
.
I then made my .xbindkeysrc
file as such:
"xte 'mouseclick 2'"
b:9
However after repolling the rc file on xbindkeys
, the key bind is not recognised anywhere on my system, and doing an xev
test returns a peculiar result:
USUALS RESULT ON DEPRESSING BUTTON 9
ButtonPress event, serial 37, synthetic NO, window 0x4a00001,
root 0x1dd, subw 0x0, time 38400097, (160,106), root:(160,169),
state 0x0, button 9, same_screen YES
ButtonRelease event, serial 37, synthetic NO, window 0x4a00001,
root 0x1dd, subw 0x0, time 38400237, (160,106), root:(160,169),
state 0x0, button 9, same_screen YES
RESULTS AFTER XBINDKEYSRC FILE MODIFICATION (BUTTON 9)
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967261 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
even after clearing out my .xbindkeysrc
file, the output is still the same, and will only return to normal after i killall xbindkeys
and restart by typing xbindkeys
in the terminal.
I found this this thread with a potential solution but unfortunately did not work for me.
Binding the button press to anything else for example "xte 'key a'"
works as expected.
Anyone with any pointers what I might be doing wrong?
Cheers.
I want it like this:
BackSpace -> backslash
Shift + BackSpace -> bar
backslash -> BackSpace
I tried to use xbindkeys and xdotool, but I couldn't get it to work. This is what I had in my .xbindkeysrc file:
"xdotool key bar"
shift + BackSpace
"xdotool key backslash"
BackSpace
"xdotool key BackSpace"
backslash
However, all this would do is make my keys stop working.
I try to bind some keys to other keys via xdotool
commands in .xbindkeysrc
. Everything works fine but I cannot simulate Enter
by any key. Neither of the following commands work.
"xdotool key KP_Enter"
q
"xdotool key Return"
q
even
"xdotool key KP_Enter"
KP_Enter
does not work.
The following command
"xdotool key Return;sleep 1;xdotool key BackSpace"
KP_Add
ignores Return
and trigger BackSpace
after 1 second.
However,
"xdotool key Return"
b:8
works. It seems I can bind the mouse to Return
, but NOT a key.
I installed xbindkeys
via sudo apt-get install xbindkeys
Now when I run xbindkeys_show
I get:
$ xbindkeys_show
/usr/bin/xbindkeys_show: 3: exec: wish: not found
The question is: How can I run this program? What dependencies are missing?