This handler runs callback on usb events.
When a usb is connected following events will capture:
- add
- change
- add
- bind
- bind
and when usb mouse is removed following will captured:
- unbind
- remove
- unbind
- remove
these effects are tested with device logitech (R) B100 mouse.
In this commit module `xutil` is added which will contain utility
functions relatd to xorg (e.g. xinput, xrandr and ...).
modules and classes inside xutil are wrappers around those binaries.
This script will be attachd to rules corresponding to change action of
mouse/pointer devices. At this time it will gather all pointers add
reattach them to the Virtual core pointer (Overhead of this approach can
be ignored as we will have very limited number of devices and addition
or removal of such devices wouldn't be a common thing.
BUG: script does not take effect when script is run
---
Test Scenario: Two mouse are attached to the different masters and
then we execute the script
Expected Behavior: both mouses reattach to the Virtual core
Problem: filter in the for-loop gathered all masters not slaves
At this point I found out that there is an xlib implementation in python
and there is no need fo xutil. So, I stages these changes and I'm going
to delete/highly modify those utility files.
42d8eb9116
into master 2 years ago42d8eb9116
.