我的 Logitech MX Master 鼠标有一个问题,它有一个专用的水平滚轮。我创建了一个/usr/share/x11/xorg.conf.d
名为的文件52-mouse-map.conf
,其中包含以下内容:
Section "InputClass"
Identifier "pointer:Logitech MX Master"
Option "ButtonMapping" "1 2 3 4 5 7 6 8 9 10 11 12 13 14 15 16 17 18 19 20"
EndSection
每当我启动时,我都会得到正确的按钮映射,其中 6 和 7 已交换位置以反转水平方向。
$ xinput get-button-map 11
1 2 3 4 5 7 6 8 9 10 11 12 13 14 15 16 17 18 19 20
它在我的 i3wm 和 sublime 等中可以正常工作,但在 chrome 中,每当我在网站上使用它并滚动浏览标签时,它都是原始方式,我觉得使用起来很奇怪。“在滚轮上向上滚动会向左滚动,向下滚动会向右滚动”。
有谁知道为什么我的更改不适用于 Chrome,但适用于其他地方?也许可以修复。
以下是一些信息:
$ xinput list 11
Logitech MX Master id=11 [slave pointer (2)]
Reporting 7 classes:
Class originated from: 11. Type: XIButtonClass
Buttons supported: 20
Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right" "Button Side" "Button Extra" "Button Forward" "Button Back" None None None None None None None None None
Button state:
Class originated from: 11. Type: XIValuatorClass
Detail for Valuator 0:
Label: Rel X
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 11. Type: XIValuatorClass
Detail for Valuator 1:
Label: Rel Y
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 11. Type: XIValuatorClass
Detail for Valuator 2:
Label: Rel Horiz Scroll
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 11. Type: XIValuatorClass
Detail for Valuator 3:
Label: Rel Vert Scroll
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 11. Type: XIScrollClass
Scroll info for Valuator 2
type: 2 (horizontal)
increment: 15.000000
flags: 0x0
Class originated from: 11. Type: XIScrollClass
Scroll info for Valuator 3
type: 1 (vertical)
increment: 15.000000
flags: 0x0