Я хочу изменить отображение кнопок и добавить функцию перетаскивания
:~$ xinput list-props 10
Device 'Kensington USB/PS2 Wheel Mouse ':
Device Enabled (148): 1
Coordinate Transformation Matrix (150): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (285): 0.000000
libinput Accel Speed Default (286): 0.000000
libinput Accel Profiles Available (287): 1, 1
libinput Accel Profile Enabled (288): 1, 0
libinput Accel Profile Enabled Default (289): 1, 0
libinput Natural Scrolling Enabled (290): 0
libinput Natural Scrolling Enabled Default (291): 0
libinput Send Events Modes Available (270): 1, 0
libinput Send Events Mode Enabled (271): 0, 0
libinput Send Events Mode Enabled Default (272): 0, 0
libinput Left Handed Enabled (292): 0
libinput Left Handed Enabled Default (293): 0
libinput Scroll Methods Available (294): 0, 0, 1
libinput Scroll Method Enabled (295): 0, 0, 0
libinput Scroll Method Enabled Default (296): 0, 0, 0
libinput Button Scrolling Button (297): 2
libinput Button Scrolling Button Default (298): 2
libinput Middle Emulation Enabled (299): 0
libinput Middle Emulation Enabled Default (300): 0
Device Node (273): "/dev/input/event4"
Device Product ID (274): 1149, 4098
libinput Drag Lock Buttons (301): <no items>
libinput Horizontal Scroll Enabled (302): 1
, если добавлю функцию перетаскивания
xinput -set-prop 10 301 1
Первая кнопка - это функция перетаскивания, но она должна быть 3-й или 4-й кнопкой. что мне делать?
спасибо
То, как это работает, выглядит следующим образом:
xinput -set-prop 11 299 3 1
Игнорировать 11 и 299, которые являются специфическими для моего компьютера, но в этом случае говорится, что 3 - кнопка блокировки для 1.
Вы также можете сделать кнопку своей собственной кнопкой блокировки, например:
xinput -set-prop 11 299 1 1
Для получения дополнительной информации проверьте man libinput
в опции «DragLockButtons».