Changing extra mouse buttons no longer works

There’s a feature that lets us remap mouse buttons. I’ve only seen it operational on Wayland.
However, after a recent update it no longer seems to work. I had to remove my previous changes and when I went to put them back, I can’t do it.
I’m trying to remap my side buttons, but when I click on them at the input prompt they input as normal and don’t register for changing.
Is anyone else having this issue?

Ah, you mean that if you delete/remove a button it can’t be added.

I just tested with my ‘Forward’ button, changed the binding no problem. You can also set the binding to ‘none’ if you don’t want any action.

However, if you remove that - then it can’t be added again…

So I’m wondering if I can figure out which specific file holds this setting, otherwise it might simply be faster to restore a snapshot.

So yes, your temporary (noob) solution would be to restore a snapshot or backup and then not remove them again until this bug gets sorted.

Meanwhile, report the bug :wink:

I’m looking further now - you can get a list of your most recently changed files (if you don’t know which file) by doing this:

find ~ -type f -mmin -10 -print0 | xargs -0 stat --format='%Y %y %n' | sort -nr | cut -d' ' -f2-

So looks like there’s a ‘kcminputrc’ file, looks likely…

Rename that to ‘kcminputrc.current’ and copy another back from a snapshot (about 12 minutes old) and then put them in Meld… Looking in Dolphin, I can see that’s what changed (and the size was different too).

So confirmed, that worked and I have my two buttons back… but then I need to re-do the bindings ('cos the old bindings came back too which I messed with whilst reading your post).

So hopefully you take snapshots and/or backups.

Oh, and did I mention - you should take regular backups and snapshots…

:vulcan_salute:

Do you have the correct mouse selected? The button bindings have changed to be per device, instead of global.

You are a lifesaver. I was able to get my settings back by editing ~/.config/kcminputrc, adding the appropriate lines, then logging out and back in to apply the settings.
This was really impacting my workflow, and it’s nice to know there is a remedy until the bug is fixed. I will try to report this to the proper channel.
Thank you so much.

1 Like

Thanks, this worked for me too! My kcminputrc was plain empty and I did only add the [ButtonRebinds][Mouse] section btw. When you make this setting it will apply to all connected mice.

1 Like

I have this and the buttons are still working when they should be disabled now.

[ButtonRebinds][Mouse]
ExtraButton1=Key,Ctrl
ExtraButton2=key,Ctrl

[Keyboard]
NumLock=0

[Mouse]
X11LibInputXAccelProfileFlat=true
XLbInptAccelProfileFlat=false
XLbInptPointerAcceleration=1
cursorSize=48
cursorTheme=material_cursors

Try removing definitions for ExtraButtons.