|
|
@ -67,7 +67,7 @@ def create_master(name: str = "touch"): |
|
|
|
Args: |
|
|
|
name (str, optional): name of the master. Defaults to 'touch'. |
|
|
|
""" |
|
|
|
completed = subprocess.run(["xinput create-master", name]) |
|
|
|
completed = subprocess.run(["xinput", "create-master", name]) |
|
|
|
|
|
|
|
return completed.returncode |
|
|
|
|
|
|
@ -79,13 +79,13 @@ def get_xi_id_by_name(name): |
|
|
|
name (str): name of the device |
|
|
|
""" |
|
|
|
completed = subprocess.run( |
|
|
|
["xinput list --id-only", name], capture_output=True |
|
|
|
["xinput", "list", "--id-only", name], capture_output=True |
|
|
|
) |
|
|
|
|
|
|
|
if completed.returncode == 1: |
|
|
|
return -1 |
|
|
|
return None |
|
|
|
else: |
|
|
|
int(completed.stdout.decode(ENCODING)) |
|
|
|
return int(completed.stdout.decode(ENCODING)) |
|
|
|
|
|
|
|
|
|
|
|
def map_to_output(output, device_id): |
|
|
|