Ali Hatami Tajik
fd23971bcc
Add reattach
add a wrapper function arround `xinput --reattach id master`
2 years ago
Ali Hatami Tajik
a62a616898
Refactor with autopep8
2 years ago
Ali Hatami Tajik
da0a4c180f
Add get_pointers
Because:
+ we need this functionality to list pointers and operate on them later
+ this list can be filtered later with less string computations
2 years ago
Ali Hatami Tajik
bc14590858
Add Pointer class
This class is a wrapper around xinput results. At this point it has
common attributes (name, id, master/slave).
2 years ago
Ali Hatami Tajik
ee141082c2
Fix map bug
wrong paranthesis for map function
2 years ago
Ali Hatami Tajik
c42fd13145
Add id-wise list short
Fn. get_list_short(id) is added because it outputs simpler syntax and
per-case output.
2 years ago
Ali Hatami Tajik
29867682ef
Add xinput short list
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.
2 years ago
Ali Hatami Tajik
6fd2ad454e
Add python redundant files to gitignore
2 years ago
Ali Hatami Tajik
803e8f4de5
Add UsbHandler
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.
2 years ago
Ali Hatami Tajik
91d43a6814
Rename module to udevhandle
module is renamed for more readablility. Also it would contain more
bussiness logic and not the Hanlder class alone.
2 years ago
Ali Hatami Tajik
ffab23f13e
Add abstract monitor handler
Because:
- provide common functionality of monitor observer. USB and Monitor
handlers will be implemented later.
2 years ago
Ali Hatami Tajik
223b9f2721
Add common utility
Because:
- These are commonly used funcionalities inside bash scripts
Usage:
- This file sould be sourced in the script file
Refrence: https://github.com/ralish/bash-script-template
2 years ago
Ali Hatami Tajik
f6002ca1c3
Add copyright to LICENSE
2 years ago
Ali Hatami Tajik
32d7bf05d6
Update 'README.md'
Name of the this project is selected as 'SonOS' and may change in the future.
2 years ago
Ali Hatami Tajik
5d74eb5c43
Initial commit
2 years ago