Try New Technology

Thumb mouse buttons in Linux (Manjaro KDE)

by on Dec.22, 2024, under Linux, Techie

If you ever need to disable the 2 “thumb” buttons on a mouse within Manjaro KDE (X.org) then you will want to test and then apply the changes to stay after reboot with the following steps.

From Console:
xmodmap -e "pointer = 1 2 3 4 5 6 7 0 0 10"

(in my case buttons 8 and 9 were the two “thumb” buttons)

If that disables those buttons then you need to create the ~/.Xmodmap file and put the following line in it:
pointer = 1 2 3 4 5 6 7 0 0 10

The above file and line will ensure those buttons stay disabled after logout/reboot.

If you need to swap around buttons or disable different buttons you can use xev which is part of the xorg-xev package. With xev launches you can click the buttons on the mouse within the Event Tester window and watch what button is mapped to which number

Example:
ButtonRelease event, serial 40, synthetic NO, window 0x3400001,
root 0x3e0, subw 0x0, time 37309475, (1,245), root:(2746,1129),
state 0x110, button 1, same_screen YES


Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...