Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								2a88541eb5 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'monitor-support' into input  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								96aa8bb506 
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'origin/input' into input  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								bcc549cbb6 
								
							
								 
							
						 
						
							
							
								
								Remove dispatches from x.py  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								dac08b19eb 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'input' into monitor-support  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								6fa9e4f103 
								
							
								 
							
						 
						
							
							
								
								Change relative config file to absolute  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								2e4b471eac 
								
							
								 
							
						 
						
							
							
								
								Move conf folder to src/script/python  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								39a481eb56 
								
							
								 
							
						 
						
							
							
								
								Add drm rules for monitor change event  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								25a054bd21 
								
							
								 
							
						 
						
							
							
								
								Add xrandr policy  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								dd9d93b0a9 
								
							
								 
							
						 
						
							
							
								
								Merge pull request 'fix-xinput-stdout' ( #1 ) from fix-xinput-stdout into input  
							
							 
							
							 
							
							
								
 
							
							
							Reviewed-on: http://194.5.205.38:3000/hatam/sono-os/pulls/1  
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								6577f79250 
								
							
								 
							
						 
						
							
							
								
								Add suitable enviornment for rule  
							
							 
							
							 
							
							
								
 
							
							
							xinput needs DISPLAY and XAUTHORITY variables set to work. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								7120888afe 
								
							
								 
							
						 
						
							
							
								
								Implement get edid name  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								62eebad3a3 
								
							
								 
							
						 
						
							
							
								
								Add prepare monitor  
							
							 
							
							 
							
							
								
 
							
							
							This function will return setup of the monitor systems. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								7dda5c15d1 
								
							
								 
							
						 
						
							
							
								
								Adds snippet list monitors  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								93a0a73e90 
								
							
								 
							
						 
						
							
							
								
								Remove multipledispatch module  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								a14c9e5cb2 
								
							
								 
							
						 
						
							
							
								
								Stage chenges of x module  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								e94fca8ab4 
								
							
								 
							
						 
						
							
							
								
								Remove unneccessary imports  
							
							 
							
							 
							
							
								
 
							
							
							This reduces the overhead of running the script. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								50b9200b17 
								
							
								 
							
						 
						
							
							
								
								Update changemouse script  
							
							 
							
							 
							
							
								
 
							
							
							add pointer binding utility to the script. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								730cc2325f 
								
							
								 
							
						 
						
							
							
								
								Fix create-master system error  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								61c1f6aa7e 
								
							
								 
							
						 
						
							
							
								
								Add get_pointers_categorized  
							
							 
							
							 
							
							
								
 
							
							
							This function will filtered pointers for EZ useage in changemouse script 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								f1237d72e1 
								
							
								 
							
						 
						
							
							
								
								Add get_xi_id_by_name  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								2d83018fcb 
								
							
								 
							
						 
						
							
							
								
								Refactor pointer generation  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								f8898b464f 
								
							
								 
							
						 
						
							
							
								
								Inhance progressbar  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								d3072117e4 
								
							
								 
							
						 
						
							
							
								
								init install script  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								843835e980 
								
							
								 
							
						 
						
							
							
								
								Add get_egalax_drm_pure_name  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								57b7774ffb 
								
							
								 
							
						 
						
							
							
								
								Add get_egalax_edid_path  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								0ab92a178c 
								
							
								 
							
						 
						
							
							
								
								Add get_edid_dev_path function  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								f114fe248b 
								
							
								 
							
						 
						
							
							
								
								Reformat python scripts  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								f85227f9f2 
								
							
								 
							
						 
						
							
							
								
								Add max_match  
							
							 
							
							 
							
							
								
 
							
							
							This function will be used to find eGalax drm device. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								e300bd486b 
								
							
								 
							
						 
						
							
							
								
								Rename util.common to util.x  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								611b0da8e6 
								
							
								 
							
						 
						
							
							
								
								Move files from xutil to util  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								5d15d79f1b 
								
							
								 
							
						 
						
							
							
								
								Add egalax utility  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								90eb2582c6 
								
							
								 
							
						 
						
							
							
								
								Stage changes  
							
							 
							
							 
							
							
								
 
							
							
							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. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								86c1235598 
								
							
								 
							
						 
						
							
							
								
								Add rotation and reflection enums  
							
							 
							
							 
							
							
								
 
							
							
							reflection and rotation are added from man page 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								14c0b143fa 
								
							
								 
							
						 
						
							
							
								
								Add randr module  
							
							 
							
							 
							
							
								
 
							
							
							This module is meant to  provide a wrapper around xrandr.
+ Pos enum added which is position of screens
- commandline options should be applied to it. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								d99c9d3d6a 
								
							
								 
							
						 
						
							
							
								
								Add mouse (hid) bind/unbind rule  
							
							 
							
							
								
 
							
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								dc9db72e57 
								
							
								 
							
						 
						
							
							
								
								Fix mouse change bug  
							
							 
							
							 
							
							
								
 
							
							
							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 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								1774b48e96 
								
							
								 
							
						 
						
							
							
								
								Add change mouse script  
							
							 
							
							 
							
							
								
 
							
							
							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. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								fd23971bcc 
								
							
								 
							
						 
						
							
							
								
								Add reattach  
							
							 
							
							 
							
							
								
 
							
							
							add a wrapper function arround `xinput --reattach id master` 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								a62a616898 
								
							
								 
							
						 
						
							
							
								
								Refactor with autopep8  
							
							 
							
							
								
 
							
							
						 
						3 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 
							
						 
						3 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). 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								ee141082c2 
								
							
								 
							
						 
						
							
							
								
								Fix map bug  
							
							 
							
							 
							
							
								
 
							
							
							wrong paranthesis for map function 
							
						 
						3 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. 
							
						 
						3 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. 
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								6fd2ad454e 
								
							
								 
							
						 
						
							
							
								
								Add python redundant files to gitignore  
							
							 
							
							
								
 
							
							
						 
						3 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. 
							
						 
						3 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. 
							
						 
						3 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. 
							
						 
						3 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  
							
						 
						3 years ago  
					 
				
					
						
							
							
								
									
								
								Ali Hatami Tajik 
							
						 
						
							
							
							
								
							
								f6002ca1c3 
								
							
								 
							
						 
						
							
							
								
								Add copyright to LICENSE  
							
							 
							
							
								
 
							
							
						 
						3 years ago