|
|
@ -75,7 +75,7 @@ def is_numlock_on():
|
|
|
|
return num_lock_status[1] == 'on'
|
|
|
|
return num_lock_status[1] == 'on'
|
|
|
|
|
|
|
|
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
except subprocess.CalledProcessError:
|
|
|
|
except (FileNotFoundError, subprocess.CalledProcessError):
|
|
|
|
# tty
|
|
|
|
# tty
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
|
@ -435,6 +435,11 @@ class Injector:
|
|
|
|
if len(macros) == 0:
|
|
|
|
if len(macros) == 0:
|
|
|
|
logger.debug('No macros configured')
|
|
|
|
logger.debug('No macros configured')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger.spam(
|
|
|
|
|
|
|
|
'Original capabilities for "%s": %s',
|
|
|
|
|
|
|
|
path, source.capabilities(verbose=True)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# certain capabilities can have side effects apparently. with an
|
|
|
|
# certain capabilities can have side effects apparently. with an
|
|
|
|
# EV_ABS capability, EV_REL won't move the mouse pointer anymore.
|
|
|
|
# EV_ABS capability, EV_REL won't move the mouse pointer anymore.
|
|
|
|
# so don't merge all InputDevices into one UInput device.
|
|
|
|
# so don't merge all InputDevices into one UInput device.
|
|
|
|