Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ powerbuttond = "hhd.plugins.powerbutton:autodetect"
aura = "hhd.device.aura:autodetect"
rgb = "hhd.plugins.rgb:autodetect"
cec = "hhd.plugins.cec:autodetect"
cooling_dock = "hhd.plugins.cooling_dock:autodetect"
overlay = "hhd.plugins.overlay:autodetect"
bootc = "hhd.plugins.bootc:autodetect"
debug = "hhd.plugins.debug:autodetect"
Expand Down
11 changes: 7 additions & 4 deletions src/hhd/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,10 +727,13 @@ def run_plugin_cmd(cmd: Callable[[HHDPlugin], None], reverse: bool = False):

has_new = should_initialize.is_set()
saved = False
# Save existing profiles if open
if save_state_yaml(state_fn, settings, conf, shash):
saved = True
conf.updated = False
if conf.updated and not getattr(conf, "yaml_save_queued", 0):
conf.yaml_save_queued = curr + 0.3

if conf.updated and curr >= getattr(conf, "yaml_save_queued", 0):
if save_state_yaml(state_fn, settings, conf, shash):
saved = True
conf.yaml_save_queued = 0
for name, prof in profiles.items():
fn = join(profile_dir, name + ".yml")
if save_profile_yaml(fn, settings, prof, shash):
Expand Down
10 changes: 10 additions & 0 deletions src/hhd/device/oxp/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,16 @@
"mapping": X1_MINI_MAPPING,
"protocol": "hid_v2_x2",
},
"ONEXPLAYER SUPER X": {
**ONEX_DEFAULT_CONF,
"name": "ONEXPLAYER SUPER X",
"protocol": "mixed",
},
"ONEXPLAYER APEX": {
**ONEX_DEFAULT_CONF,
"name": "ONEXPLAYER APEX",
"protocol": "mixed",
},
"ONEXPLAYER G1 i": {
**ONEX_DEFAULT_CONF,
"name": "ONEXPLAYER G1 (Intel)",
Expand Down
3 changes: 3 additions & 0 deletions src/hhd/plugins/cooling_dock/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .base import autodetect

__all__ = ["autodetect"]
Loading