ubuntu:mouse:change_mouse_properties
This is an old revision of the document!
Ubuntu - Mouse - Change Mouse Properties
The libinput library handles most input events on a system.
- It can process input events on both Wayland and X and can handle a variety of input devices including touchscreen displays and stylus pens.
It is recommended that libinput devices are configured through the InputClass directive.
See Determine the Mouse.
- This shows that the id of the mouse is 8 in this case.
List the Mouse Properties
xinput list-props 8
returns:
Device 'Razer Razer DeathAdder V2': libinput Natural Scrolling Enabled (291): 0 ... <code> ===== Change Properties of a Connected Device ===== <code bash> xinput set-prop 8 291 0 xinput set-prop 8 291 1
NOTE:
- 8: is the id of the mouse as determined by the previous step, Determine the Mouse.
- 291: is from the List the Mouse Properties referring to the Natural Scrolling Enabled property.
- 0: disables natural scrolling while “1” enables it.
Using an ID is not a reliable way to change a property, as these may change. A better approach is to use the full property identifier:
xinput set-prop 8 "libinput Natural Scrolling Enabled" 0 xinput set-prop 8 "libinput Natural Scrolling Enabled" 1
ubuntu/mouse/change_mouse_properties.1635254507.txt.gz · Last modified: 2021/10/26 13:21 by peter