User Tools

Site Tools


ubuntu:mouse:map_mouse_buttons_to_arbitrary_functions

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_to_arbitrary_functions [2021/10/26 07:57] – [Assign a function to a Mouse Button] peterubuntu:mouse:map_mouse_buttons_to_arbitrary_functions [2021/10/26 08:57] (current) peter
Line 77: Line 77:
  
   * Raw keycodes can be used too, for example: <code>   * Raw keycodes can be used too, for example: <code>
-"xte 'keydown m:0x0 + c:110' 'keyup m:0x0 + c:110'"+"xte 'keydown Home' 'keyup Home'" 
 +m:0x0 + b:
 </code> </code>
  
 See: [[Ubuntu:Mouse:Map Mouse Buttons to Arbitrary Functions:Identify the key codes to use|Identify the key codes to use]] See: [[Ubuntu:Mouse:Map Mouse Buttons to Arbitrary Functions:Identify the key codes to use|Identify the key codes to use]]
 +
 +</WRAP>
 +
 +----
 +
 +==== Another examples ====
 +
 +<file bash ~/.xbindkeysrc>
 +# Refresh
 +"xte 'key F5'"
 +  b:4 + control
 +</file>
 +
 +<WRAP info>
 +**NOTE:** This maps:
 +
 +  * This will cause the forward mouse button and the CTRL key to emulate pressing the F5 key.
 +  * This is useful for refreshing a web page without moving your hand off the mouse.
  
 </WRAP> </WRAP>
Line 124: Line 143:
 ---- ----
  
 +====== Restart xbindkeys ======
  
 +If any changes are made to the config file then xbindkeys needs to be restarted:
 +
 +<code bash>
 +killall xbindkeys
 +xbindkeys
 +</code>
 +
 +
 +
 +----
  
 ====== References ====== ====== References ======
  
 https://linux.die.net/man/7/xautomation https://linux.die.net/man/7/xautomation
 +
 +https://manpages.debian.org/stretch/xautomation/xte.1
 +
 +https://linux.die.net/man/1/xte
 +
  
ubuntu/mouse/map_mouse_buttons_to_arbitrary_functions.1635235031.txt.gz · Last modified: 2021/10/26 07:57 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki