Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

60%
+1 −0
Q&A How do you remap mouse buttons?

No wonder it's hard to find good programs - it's no longer necessary! At some point this became a built in part of Xorg via xinput. The process is something like this: xinput list and find the ...

posted 2mo ago by matthewsnyder‭  ·  edited 2mo ago by matthewsnyder‭

Answer
#2: Post edited by user avatar matthewsnyder‭ · 2024-03-21T23:58:06Z (about 2 months ago)
  • No wonder it's hard to find good programs - it's no longer necessary! At some point this became a built in [part of Xorg via xinput](https://wiki.archlinux.org/title/Libinput#Via_xinput_on_Xorg).
  • The process is something like this:
  • * `xinput list` and find the ID of your mouse
  • * `xinput get-button-map $MOUSE_ID` and see the current map
  • * `xev -event button | grep button` to check which button is which
  • * `xinput set-button-map $MOUSE_ID $NEW_BUTTON_MAP` to remap
  • To make it permanent you can create Xorg config files (described in the link).
  • No wonder it's hard to find good programs - it's no longer necessary! At some point this became a built in [part of Xorg via xinput](https://wiki.archlinux.org/title/Libinput#Via_xinput_on_Xorg).
  • The process is something like this:
  • * `xinput list` and find the ID of your mouse
  • * `xinput get-button-map $MOUSE_ID` and see the current map
  • * `xev -event button | grep button` to check which button is which
  • * `xinput set-button-map $MOUSE_ID $NEW_BUTTON_MAP` to remap
  • This will only work until the next reboot.
  • To make it permanent you can create Xorg config files (described in the link).
#1: Initial revision by user avatar matthewsnyder‭ · 2024-03-21T23:50:13Z (about 2 months ago)
No wonder it's hard to find good programs - it's no longer necessary! At some point this became a built in [part of Xorg via xinput](https://wiki.archlinux.org/title/Libinput#Via_xinput_on_Xorg).

The process is something like this:
* `xinput list` and find the ID of your mouse
* `xinput get-button-map $MOUSE_ID` and see the current map
* `xev -event button | grep button` to check which button is which
* `xinput set-button-map $MOUSE_ID $NEW_BUTTON_MAP` to remap

To make it permanent you can create Xorg config files (described in the link).