mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
option to activate jiggler by default
This commit is contained in:
parent
10a38ff6bc
commit
981309d886
@ -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"),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user