Logitech USB Laser Mouse id=11 Ĭlass originated from: 11. This may be different from the number of buttons that is apparent on the device. While you still know the ID of the device in this session, find out how many buttons the input handler thinks your mouse has, by using xinput list deviceID. Your mouse will have a different name figuring that out is left as an exercise for the reader. My mouse calls itself Logitech USB Laser Mouse and is shown as id=11. Below is some sample output from my laptop: ⎡ Virtual core pointer id=2 First, use xinput to discover the name that is assigned to your mouse, which is then correlated to an input device ID. You will need xinput installed for this task. Mapping Mouse Buttons to Other Mouse Buttons Though my aims were specific, the solutions below can be generalized to any situation in which you want to automatically remap mouse buttons at startup. I also wanted to map the bottom side button (#8) so that it executes a double-click of the left button (#1). So I wanted to automatically remap the top side button (#9 in this case) to the middle button (#2). I dislike this because I'm clumsy and typically end up scrolling the window I'm in when I try to click the wheel.
I have a Logitech mouse with 9 buttons, and pressing the 'middle button' (#2) involves clicking the scroll wheel.