-
install latest input_remapper from github
{
"type": 2,
"code": 1,
"origin_hash": "6c9c12eca71fac1eb7c74e44715e8303"
},
{
"type": 1,
"code": 274,
"origin_hash": "6c9c12eca71fac1eb7c74e44715e8303"
}
],
"target_uinput": "mouse",
"output_type": 2,
"output_code": 8,
"mapping_type": "analog",
"deadzone": 0.0,
"gain": -2.0,
"expo": -0.85
type 2/code 1 => Y-axis movement
type 1/code 274 => middle button?
output_type 2/output_code 8 => v-wheel movement
- libinput(dynamic)
- marble mouse
sudo xinput set-prop "Logitech USB Trackball" "libinput Scroll Method Enabled" 0 0 1
- marble fx(remapped middle-button)
sudo xinput set-prop "Arduino LLC Arduino Micro" "libinput Scroll Method Enabled" 0 0 1
- permanent
- xorg.conf : overriden by gsettings for gnome, but needed for openbox
- /etc/X11/xorg.conf.d/10-libinput.conf
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchDriver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "8"
Option "MiddleEmulation" "true"
EndSection
- gsettings
- needed for gnome
- gsettings set org.gnome.desktop.peripherals.trackball scroll-wheel-emulation-button 8
- https://www.reddit.com/r/pop_os/comments/jm2i4h/scrollmethod_and_scrollbutton_libinput_are/