|
|
|
@ -24,7 +24,7 @@ from calculate.lib.datavars import (Variable, VariableError, ReadonlyVariable,
|
|
|
|
|
VariableInterface)
|
|
|
|
|
from calculate.lib.utils.common import getValueFromConfig
|
|
|
|
|
from calculate.lib.variables import user
|
|
|
|
|
from calculate.lib.utils.device import sysfs
|
|
|
|
|
import calculate.lib.utils.device as device
|
|
|
|
|
from calculate.lib.utils.files import (readLinesFile, process,
|
|
|
|
|
listDirectory, readFile)
|
|
|
|
|
from calculate.desktop._cl_keys import getKey
|
|
|
|
@ -213,8 +213,9 @@ class VariableClDesktopXfcePointers(ReadonlyVariable):
|
|
|
|
|
def get(self):
|
|
|
|
|
def generate():
|
|
|
|
|
for input_device_name in sorted(
|
|
|
|
|
sysfs.glob(sysfs.Path.Input, "mouse*/device/name")):
|
|
|
|
|
data = sysfs.read(input_device_name)
|
|
|
|
|
device.sysfs.glob(device.sysfs.Path.Input,
|
|
|
|
|
"mouse*/device/name")):
|
|
|
|
|
data = device.sysfs.read(input_device_name)
|
|
|
|
|
if data:
|
|
|
|
|
yield data.strip().replace(" ", "_").replace("/","")
|
|
|
|
|
|
|
|
|
|