mouse의 기능 버튼 설정 방법으로 xbindkeys를 사용하라는 예제들이 많은데 개인적으로 xbindkeys보다 imwheel이 더 설정하기가 쉽고 wheel 의 스크롤속도 조절도 가능해서 imwheel을 추천합니다.
그리고 xbindkeys와 imwheel 모두 input 장치의 bind를 제어하는 프로그램이라 두 프로그램 간에 충돌로 제어가 정상작동 하지 않는 상황이 발생하기 때문에 동시 사용시 문제가 발생하니 참고하세요~
$ sudo apt install imwheel
$ imwheel
$ sudo vi /etc/X11/imwheel/startup.conf
IMWHEEL_START=0 을 1로 수정 합니다.
$ sudo vi ~/.imwheelrc
# windows regex .* is all windows
".*"
# 1. key modifiers input
# 2. mouse action Input (Up, Down, Left, Right, Thumb)
# 3. key action output
# 4. optional [output repetitions [, delay before keyup event [, delay before next key press event]]]
None, Up, Button4, 1
None, Down, Button5, 1
None, Thumb1, Alt_L|Left
None, Thumb2, Alt_L|Right
$ imwheel -k