One more question about reassigning mouse buttons

This post follows this one.

I have a new wireless mouse, with one more button than the previous one. By default, it shows the desktops when clicked.

So I wanted to assign it a keybord key, much like in the original post, so I did the same thing: using Input Remapper, I recorded what the button did (Super+d, according to Input Remapper), so I reassigned Super+d to ampersand (&) (in one preset) and twosuperior (²) in one other.

But having done this, it does not work as intended: when clicked, it does insert the wanted symbol into any opened and focused test field (and in games it does any command assigned to & or ², but: it also opens the application dashboard from my task bar (even above the game if I’m playing!)!

I checked both in Settings➔Shortcuts➔KWin and in Right click Application Dashboard➔Configure➔Custom shortcut: in none of these places can I find any predefined shortcut, and especially not Super+d.

So I don’t understand this behavior. Two last pieces of information:

  • the mouse is this one, it has a software for Windows and Mac but not Linux;
  • here’s the whole output of xev -event keyboard -event button when I click the button:
  xev -event keyboard -event button                                                                                                                                            ✔ 
Outer window is 0x4e00001, inner window is 0x4e00002

KeymapNotify event, serial 24, synthetic NO, window 0x0,
    keys:  0   0   0   0   16  0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 25, synthetic NO, window 0x4e00001,
    root 0x7e6, subw 0x0, time 2273573, (-403,457), root:(468,2015),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

MappingNotify event, serial 28, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 28, synthetic NO, window 0x4e00001,
    root 0x7e6, subw 0x0, time 2277320, (-498,-48), root:(373,1510),
    state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 29, synthetic NO, window 0x4e00001,
    root 0x7e6, subw 0x0, time 2277326, (-498,-48), root:(373,1510),
    state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

MappingNotify event, serial 29, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 29, synthetic NO, window 0x4e00001,
    root 0x7e6, subw 0x0, time 2277326, (-498,-48), root:(373,1510),
    state 0x10, keycode 49 (keysym 0xb2, twosuperior), same_screen YES,
    XLookupString gives 2 bytes: (c2 b2) "²"
    XmbLookupString gives 2 bytes: (c2 b2) "²"
    XFilterEvent returns: False

KeymapNotify event, serial 30, synthetic NO, window 0x0,
    keys:  230 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

… I can’t make sense of this, I don’t know how to read this information (but I guess it could help to solve my problem).

Thanks!

Go here in system settings

On next screen press Add Binding, press one of extra mouse buttons then press keyboard shortcut (actions for this shortcut you can set up in Shortcut section in System Settings)

Thanks for your answer. I don’t have that option… Maybe I’m missing some packages?

I checked it and looks it’s Wayland only feature…

I understand.
I’m not sure I have the time to switch to Wayland — I know very little about what X11 and Wayland do differently, and I’m afraid that switching would introduce new bugs that will be time-consuming to correct…
What do you think about alternative solutions (xve, Input Remapper)?

Logout and choose Wayland, then test for yourself, if it doesn’t suit you then relogin to X11. It takes less than 5 min to test.

1 Like

It’s Super (aka Win) on it’s own.

You’re probably better off re-programming the mouse on another computer.

Ok, I forgot it was that simple.

So I did, but I have the same problem: I go to Settings➔Input Devices➔Mouse➔Rebind Additional Mouse Button, then + Add Binding, and when I get this:

… and press my “Desktop” mouse button, it minimizes the Settings app and shows the desktop. Going back to Settings: it didn’t record anything.

So I have the exact same problem as in my original examples in the post…

It seems to be a bug, Plasma should register the mouse event and consume it without triggering any operation.

Similar to extra-back button https://bugs.kde.org/show_bug.cgi?id=483032

Please report it at KDE Bugs tracker.

That should not happen, probably that’s bug. By default Super/Meta/Win+d is assigned to Show Desktop – you can temprarily remove this shortcut (ShortcutsKWin)