Goal is to get left hand mode, i. e. buttons swapped, on specific mouse (which I have besides other mouse) persistently and to survive after returning from suspend. Using X and Kde. This script works which changes button map but after suspend it doesn’t have an effect anymore:
ID=$(xinput list | grep “Logitech Wireless Mouse” | head -n 1 | sed -r ‘s/.id=([0-9]+)./\1/’)
xinput set-button-map $ID 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Mouse in question:
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Logitech Wireless Mouse id=11 [slave pointer (2)]
Tried to make a file /etc/X11/xorg.conf.d/80-logitech_mouse.conf with contest below but seems it doesn’t have an effect. What I’m doing wrong here?
Tried “1” instead of “true” but doesn’t work.
Section "InputClass"
Identifier "Logitech Wireless Mouse"
MatchProduct "Logitech Wireless Mouse"
Driver "libinput"
Option "Left Handed Enabled" "true"
EndSection
Mouse info:
$ xinput list-props 11
Device 'Logitech Wireless Mouse':
Device Enabled (167): 1
Coordinate Transformation Matrix (169): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (304): 0
libinput Natural Scrolling Enabled Default (305): 0
libinput Scroll Methods Available (306): 0, 0, 1
libinput Scroll Method Enabled (307): 0, 0, 0
libinput Scroll Method Enabled Default (308): 0, 0, 0
libinput Button Scrolling Button (309): 2
libinput Button Scrolling Button Default (310): 2
libinput Button Scrolling Button Lock Enabled (311): 0
libinput Button Scrolling Button Lock Enabled Default (312): 0
libinput Middle Emulation Enabled (313): 1
libinput Middle Emulation Enabled Default (314): 0
libinput Accel Speed (315): 1.000000
libinput Accel Speed Default (316): 0.000000
libinput Accel Profiles Available (317): 1, 1
libinput Accel Profile Enabled (318): 1, 0
libinput Accel Profile Enabled Default (319): 1, 0
libinput Left Handed Enabled (320): 0
libinput Left Handed Enabled Default (321): 0
libinput Send Events Modes Available (289): 1, 0
libinput Send Events Mode Enabled (290): 0, 0
libinput Send Events Mode Enabled Default (291): 0, 0
Device Node (292): "/dev/input/event10"
Device Product ID (293): 1133, 16468
libinput Drag Lock Buttons (322): <no items>
libinput Horizontal Scroll Enabled (323): 1