Skip to content

Commit

Permalink
option to activate jiggler by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Oct 30, 2023
1 parent 10a38ff commit 981309d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kvmd/plugins/hid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

# =====
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

Expand All @@ -48,6 +48,7 @@ def _get_jiggler_options(cls) -> dict[str, Any]:
return {
"jiggler": {
"enabled": Option(False, type=valid_bool, unpack_as="jiggler_enabled"),
"active": Option(False, type=valid_bool, unpack_as="jiggler_active"),
},
}

Expand Down

0 comments on commit 981309d

Please sign in to comment.