I am trying to map the two side buttons of my Logitech Anywhere MX 3 to volume increment/decrement without using any additional tools, ideally using
My idea was to generate a plist for launch, like done here.
I'd been able to identify the correct device for the hidutil matching:
Devices: VendorID ProductID LocationID UsagePage Usage RegistryID Transport Class Product UserClass Built-In 0x46d 0xb025 0xaa3c803e 1 2 0x100000c18 Bluetooth Low Energy IOHIDResource MX Anywhere 3 (null) (null)
Now I am trying to find the correct key codes for Button 4 and Button 5 and Volume Decrement and Increment for several days.
Is anybody aware of them?
Apple only lists keyboard key codes in their Technotes.
Cross-Post also on Github.
P.S.: Initially I wanted to map the middle button below the wheel, too but this button does not generate any events. I know there is a way to adjust the firmware for Logitech mice (here MX Revolution) to change the wheel's behavior, but that would require a rewrite for macOS. (See the Ensourced article "Linux, MX Revolution and the Middle mouse button")