我想禁用由 bash 脚本控制的鼠标移动,因此xdotool可以接管并撞击鼠标,否则不会成为问题。
但是,我需要按钮保持工作,所以简单地禁用鼠标不是一个选项。
这与这个问题相同,但那里的解决方案对我不起作用。我的鼠标似乎没有这些属性。
xinput list显示鼠标 3 次。ID 10 拥有最多的属性,其他两个具有选项的子集。
的输出xinput list-props 10:
Device 'Logitech Gaming Mouse G502':
Device Enabled (152): 1
Coordinate Transformation Matrix (154): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (290): 0.000000
libinput Accel Speed Default (291): 0.000000
libinput Accel Profiles Available (292): 1, 1
libinput Accel Profile Enabled (293): 1, 0
libinput Accel Profile Enabled Default (294): 1, 0
libinput Natural Scrolling Enabled …Run Code Online (Sandbox Code Playgroud)