Using this blog to hold on to this information. I never use the back/forward buttons on my mouse, and at one point rebound them to Page Up/Down instead. I do not care if there is a superior way to do this. It worked for me.
Originally from the incredibly named: https://www.linuxuprising.com/2019/11/how-to-bind-mouse-buttons-to-keyboard.html
Programs:
sudo apt install xbindkeys x11-utils xdotool
Find mouse button:
xev | grep button
Find keyboard key:
xev | sed -ne '/^KeyPress/,/^$/p'
Create ~/.xbindkeysrc. First number is keycode. Second number is mouse button: ``` "xdotool key '112'" b:9
"xdotool key '117'" b:8 ```
Run xbindkeys. It should autostart if .xbindkeysrc
isn't empty.
How bad is the Markdown renderer gonna mangle this post?