diff options
author | Maxim Devaev <[email protected]> | 2023-10-30 15:54:03 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-10-30 15:54:03 +0200 |
commit | 981309d8865125307b5a67c21a0674b142423773 (patch) | |
tree | e3657a8878f9afadc1e02e4ea3679cbe9ff6d95d /kvmd | |
parent | 10a38ff6bc2ef222d461b3cc86acad5bc2ff9831 (diff) |
option to activate jiggler by default
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/hid/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/__init__.py b/kvmd/plugins/hid/__init__.py index 336697ea..176ffb10 100644 --- a/kvmd/plugins/hid/__init__.py +++ b/kvmd/plugins/hid/__init__.py @@ -37,9 +37,9 @@ from .. import get_plugin_class # ===== class BaseHid(BasePlugin): - def __init__(self, jiggler_enabled: bool) -> None: + def __init__(self, jiggler_enabled: bool, jiggler_active: bool) -> None: self.__jiggler_enabled = jiggler_enabled - self.__jiggler_active = False + self.__jiggler_active = jiggler_active self.__jiggler_absolute = True self.__activity_ts = 0 @@ -48,6 +48,7 @@ class BaseHid(BasePlugin): return { "jiggler": { "enabled": Option(False, type=valid_bool, unpack_as="jiggler_enabled"), + "active": Option(False, type=valid_bool, unpack_as="jiggler_active"), }, } |