[Manjaro] How to remap mouse buttons in KDE Wayland

Before anyone states to use the settings app, it doesn’t read the mouse clicks when trying to remap. So that being said is there a way to remap my extra buttons in KDE Wayland on Manjaro, where it will automatically start on login? I have tried Input Remapper but that doesn’t start the remapping automatically anymore, it will just start the program and you then have to tell it to run the remapping script.

I saw this issue before - then you can manually edit the configuration file yourself.

It’s not a good plan to mask a problem with your system as you suggest…

The file you want is kcminputrc. I set my thumb buttons to present windows and Grid:

[ButtonRebinds][Mouse]
ExtraButton1=Key,Meta+G
ExtraButton2=Key,Ctrl+F10

I had no problems mapping the extra buttons of my mouse using the system settings, but if that does not work, or just for more options, I would suggest the tool “input-remapper” which can basically do anything. I use it to map left and right on my 4-way scrollwheel to copy and paste actions, for instance.

1 Like

Neither you nor OP have actually specified their system details…

But this issue was raised just a few weeks ago, it is a genuine issue that some folks met - and it’s easily solved by manually changing the setting in the settings file.

hi, welcome.

this sounds odd.

~/.config/kcminputrc is where wayland puts the button rebinds.

i have

[ButtonRebinds][Mouse]
ExtraButton1=Key,Ctrl+V
ExtraButton2=Key,Alt+Up
ExtraButton3=Key,Ctrl+C

from my short stint on plasma 6, but since i’m now back on plasma 5 (getting work done) i use input remapper to simulate these rebinds for me until i move back to plasma 6 next year.

it works just fine for my install (kubuntu 24.04)… how did you install input remapper?

is it native or a flatpak?

i would question whether or not you have a working copy of the software.

1 Like

Oh, I totally missed the fact that OP already mentioned input-remapper… sorry.

Actually, I do also have the problem that the input-remapper service won’t apply configs after boot anymore since a few weeks ago as well, I just assumed that had to be a problem with the tool, not with plasma. I’m running the latest version using the input-remapper-git AUR package, so maybe one of the newer commits introduced a bug.

i’m using v2.0.1 on kubuntu 24.04 native .deb package and no issues with with it’s built in autostart feature.

i would look to whoever complied the AUR package and point out that it’s broken.

Well, from looking at the username I’d wager the AUR maintainer is the actual application developer. The AUR package is also listed as an official install source on the github readme.

If I find the time I might try pulling and building an older version and see if I get it working again.