之前有好心的人跟我说可以看
evdev 的 DragLockButtons , /etc/X11/xorg.conf.d/
或是libinput
我看了这份文件
https://tinyurl.com/qooofev
还是不懂DragLockButtons的说明
它写说如果只设一个值,代表"meta" locking button
设一对值,代表第一个值为lock button第二个值为logical button number
我想要设定鼠标左键为DragLockButtons
我的设定文件似乎都是在/usr/share/X11/xorg.conf.d下
在/etc/X11下并没有xorg.conf.d资料夹
但是我找不到"Log"Logitech USB Optical Mouse"的设定档在哪
在目录下用grep找也找不到
另外我从xinput list-props 9中没看到ButtonMapping
所以参照下面这份文件试着用xinput set-prop来设定
也完全没作用
https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse
请问该怎么设才对?
谢谢
以下是我的Ubuntu xinput list画面
[email protected]:~# xinput list
Virtual core pointer id=2 [master pointer (3)]
Virtual core XTEST pointer id=4 [slave
pointer (2)]
Logitech USB Optical Mouse id=9 [slave
pointer (2)]
ATEN UC-10KM V1.3.124 id=12 [slave
pointer (2)]
Virtual core keyboard id=3 [master keyboard (2)]
Virtual core XTEST keyboard id=5 [slave
keyboard (3)]
Power Button id=6 [slave
keyboard (3)]
Video Bus id=7 [slave
keyboard (3)]
Power Button id=8 [slave
keyboard (3)]
ATEN UC-10KM V1.3.124 id=10 [slave
keyboard (3)]
Chicony USB Keyboard id=11 [slave
keyboard (3)]
Chicony USB Keyboard id=13 [slave
keyboard (3)]
[email protected]:~# xinput list-props 9
Device 'Logitech USB Optical Mouse':
Device Enabled (133): 1
Coordinate Transformation Matrix (135): 1.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (260): 0
Device Accel Constant Deceleration (261): 1.000000
Device Accel Adaptive Deceleration (262): 1.000000
Device Accel Velocity Scaling (263): 10.000000
Device Product ID (250): 1133, 49271
Device Node (251): "/dev/input/event4"
Evdev Axis Inversion (264): 0, 0
Evdev Axes Swap (266): 0
Axis Labels (267): "Rel X" (143), "Rel Y" (144), "Rel Vert Wheel" (259)
Button Labels (268): "Button Left" (136), "Button Middle" (137),
"Button Right" (138), "Button Wheel Up" (139), "Button Wheel Down" (140),
"Button Horiz Wheel Left" (141), "Button Horiz Wheel Right" (142), "Button
Side" (254), "Button Extra" (255), "Button Forward" (256), "Button Back"
(257), "Button Task" (258), "Button Unknown" (253), "Button Unknown" (253),
"Button Unknown" (253), "Button Unknown" (253)
Evdev Scrolling Distance (269): 1, 1, 1
Evdev Middle Button Emulation (270): 0
Evdev Middle Button Timeout (271): 50
Evdev Third Button Emulation (272): 0
Evdev Third Button Emulation Timeout (273): 1000
Evdev Third Button Emulation Button (274): 3
Evdev Third Button Emulation Threshold (275): 20
Evdev Wheel Emulation (276): 0
Evdev Wheel Emulation Axes (277): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (278): 10
Evdev Wheel Emulation Timeout (279): 200
Evdev Wheel Emulation Button (280): 4
Evdev Drag Lock Buttons (281): 0
我不晓得Drag Lock Buttons要怎么设定才是正确的?也有试过其他数字
如果设定xinput set-prop 9 281 136
会显示BadValue(integer parameter out of range for operation)
[email protected]:~# xinput set-prop 9 281 2 2 (无作用)
[email protected]:/usr/share/X11/xorg.conf.d# ls
10-amdgpu.conf 10-quirks.conf 11-evdev-trackpoint.conf
50-vmmouse.conf 51-synaptics-quirks.conf
10-evdev.conf 11-evdev-quirks.conf 50-synaptics.conf 50-wacom.conf
※ 引述《upufuxup (HelloRain)》之铭言:
: Windows 的鼠标设定里,可以启动"点选锁定",
: 让使用者在反白或拖曳时,不须一直按著鼠标,
: 只要按一下鼠标键,放开,再按一次鼠标键即可
: 我想要在Ubuntu里也启用这个功能
: 我查了imwheel跟xmodmap的设定教学,可是都找不到怎么设定"点选锁定"
: 请问有什么方法可以在Ubuntu上设定鼠标"点选锁定"?
: 谢谢