9 name_output = subprocess.check_output([
"xinput",
"list",
"--name-only"]).split(
"\n")
10 id_output = subprocess.check_output([
"xinput",
"list",
"--id-only"]).split(
"\n")
11 return [[name, int(id)]
12 for name, id
in zip(name_output, id_output)
16 subprocess.check_call([
"xinput",
"set-prop",
17 str(id),
"Device Enabled", str(enable)])
27 for device_name, id
in name_id_list:
28 if name == device_name:
33 for device_name, id
in name_id_list:
34 if name == device_name:
39 for device_name, id
in name_id_list:
40 if re.match(regexp, device_name)
is not None:
45 for device_name, id
in name_id_list:
46 if re.match(regexp, device_name)
is not None: