2023년 8월 24일 목요일

linux button_scroll for logitech marble mouse

  • install latest input_remapper from github
config "input_combination": [
{
"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 Button Scrolling Button" 8
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 Button Scrolling Button" 7
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
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchDriver "libinput"
Option "ScrollMethod" "button"
Option "ScrollButton" "8"
Option "MiddleEmulation" "true"
EndSection








댓글 없음:

댓글 쓰기

via permission error linux chrome

 https://bbs.archlinux.org/viewtopic.php?id=285709