ubuntu:mouse:map_mouse_buttons_to_arbitrary_functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:mouse:map_mouse_buttons_to_arbitrary_functions [2021/10/25 23:47] – peter | ubuntu:mouse:map_mouse_buttons_to_arbitrary_functions [2021/10/26 08:57] (current) – peter | ||
---|---|---|---|
Line 9: | Line 9: | ||
* **xvkbd** can send a keyboard key signal or mouse click to other programs. | * **xvkbd** can send a keyboard key signal or mouse click to other programs. | ||
* **xdotool** can simulate keyboard input and mouse activity, move and resize windows, etc. | * **xdotool** can simulate keyboard input and mouse activity, move and resize windows, etc. | ||
- | |||
- | ---- | ||
- | |||
- | [[Ubuntu: | ||
---- | ---- | ||
Line 80: | Line 76: | ||
**NOTE: | **NOTE: | ||
- | See: [[Ubuntu: | + | * Raw keycodes can be used too, for example: < |
+ | "xte ' | ||
+ | m:0x0 + b:6 | ||
+ | </ | ||
+ | |||
+ | See: [[Ubuntu: | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Another examples ==== | ||
+ | |||
+ | <file bash ~/ | ||
+ | # Refresh | ||
+ | "xte 'key F5'" | ||
+ | b:4 + control | ||
+ | </ | ||
+ | |||
+ | <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. | ||
</ | </ | ||
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 | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
====== References ====== | ====== References ====== | ||
https:// | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
ubuntu/mouse/map_mouse_buttons_to_arbitrary_functions.1635205662.txt.gz · Last modified: 2021/10/25 23:47 by peter