For years, I’ve used a Razor Naga with DPI switching on one of the side buttons, and for years before that, it was a Logitech G600. I’ve just installed Linux for the first time in a while only to realize Razor doesn’t offer support, and Polychromatic doesn’t offer button remapping.

Is there any way to rebind my mouse, or will I have to go back to Windows to keep using my mouse?

1Edit: plz send help fast. I am typing “1” into every window I open. I need rebind this before I break something.1

Edit21: Is there a way to bind a sensitivity toggle to the mouse button event more directly?

Edit 3: I’ve run out of time to work on this, so I’ll need to install Windows for the time being. I might come back to it if I ever get a weekend free.

  • foggy@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    18 days ago

    Find device ID with xinput list

    Check button mapping with xinput get-button-map <ID>

    Swap button assignment (eg 8<->9) with xinput set-button-map <ID> 1 2 3 4 5 6 7 9 8

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 days ago

      xinput will work under Xorg, but not Wayland.

      I actually don’t think I’ve needed to remap mouse buttons on Wayland. Most stuff like that got pushed to the compositor in Wayland. I assume that, given that I’m using sway, sway has some mechanism. Probably Gnome and KDE do too. OP didn’t indicate what environment he was in, though.

      https://wiki.archlinux.org/title/Input_remap_utilities

      Has some packages.

      • foggy@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        18 days ago

        God damn that’s so good to know.

        I’ve been neglecting this issue on a subset of vms. At work, no less.

        No real issue just a headache.

        Thank you. Deobfuscated a pain point I never bothered to look into. I can probably work around it now.