So i have a usb mouse i connect via sys-usb and i get three prompts from QubesOS to attach to dom0 while one is mouse pointer and the other two show as keyboard inputs.
While i deny the keyboard ones obviously, i accept the mouse and it works fine. Should i throw this pointer device into the trash?
Another question related middle mouse paste i want it forcibly disabled, i use xinput set-button-map DEVICE-ID 1 0 3 4 5 6 7 which works fine to disable the middle mouse paste but this can only run after beeing attached to dom0. When i replug it, i have to rerun the command to disable the middle mouse. any option to run the command after the device beeing attached to dom0?
The three prompts are just the separate interfaces of one composite device; declining the keyboard ones leaves them in sys-usb and out of dom0, so the mouse itself is fine to keep. For the remap surviving replugs, a dom0 udev rule matching the mouse idVendor/idProduct with ACTION==add can run xinput set-button-map automatically on each attach - the catch is the helper script needs DISPLAY=:0 and the correct XAUTHORITY to reach the dom0 X server. Does the udev add event actually fire in dom0 when a device is attached through the devices widget?