User Tools

Site Tools


ubuntu:mouse:map_mouse_buttons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:mouse:map_mouse_buttons [2021/10/25 15:04] peterubuntu:mouse:map_mouse_buttons [2021/10/26 14:07] (current) peter
Line 1: Line 1:
 ====== Ubuntu - Mouse - Map Mouse Buttons ====== ====== Ubuntu - Mouse - Map Mouse Buttons ======
 +
 +In most cases, 
 +
 +  * Buttons 1, 2, 3 are interpreted as left, middle, right.
 +  * Logical buttons 4, 5, 6, 7 are usually interpreted as scroll up, down, left, right.
 +  * The fourth and fifth physical buttons on a device will thus send logical buttons 8 and 9.
 +
 +----
  
   * [[Ubuntu:Mouse:Determine the Mouse|Determine the Mouse]].   * [[Ubuntu:Mouse:Determine the Mouse|Determine the Mouse]].
Line 49: Line 57:
  
 </WRAP> </WRAP>
 +
 +----
 +
 +====== Run at startup ======
 +
 +One approach is to create a shell script that performs the Mouse Button mapping:
 +
 +<code bash>
 +echo "xinput --set-button-map 21 3 2 1" > leftmouseremap.sh
 +</code>
 +
 +Give it executable permission:
 +
 +<code bash>
 +chmod +x leftmouseremap.sh 
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  Either run the script manually, or configure it to automatically run on system reboot.
 +
 +  * Follow any process to have this script run at boot if needed.
 +
 +  * Remember to configure 'xbindkeys' to run automatically on system startup too if needed:
 +    * '/usr/bin/xbindkeys'
 +
 +</WRAP>
 +
  
 ---- ----
ubuntu/mouse/map_mouse_buttons.1635174268.txt.gz · Last modified: 2021/10/25 15:04 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki