My mouse has a vertical and horizontal scroll wheel. I would like to swap them so that the original vertical wheel controls horizontal scrolling and vice versa.
So far:
- I have used
xev
to identify the button numbers: 4 (scroll up), 5 (scroll down), 6 (scroll left), 7 (scroll right). - Used
xinput --set-button-map
to remap the buttons as I want them - Checked the procedure with
xev
andxinput --get-button-map
. They both show the new mapping. This is xinput's output:1 2 3 6 7 5 4 8 2 10 11 12 13 14 15 16 17 18 19 20
- Restarted open applications, as suggested in Ask Ubuntu: Swap vertical and horizontal scroll axis
- Aside: I have remapped button 9 to be button 2 and this is working as expected.
Despite xev
showing the buttons being mapped as I want them the vertical and horizontal scrolling behaviour has not changed in any of my applications, for example in Chrome and Inkscape. I am using KDE, in case that is relevant.
What am I missing?