Skip to content

[Feature Request] Non-interactive mode #16

Description

@anna-oake

Thanks for the awesome tool!
I'm using it with my NixOS-based couch gaming PC.

I'd like to request a non-interactive mode.
The use case for me is to set it up as a oneshot systemd service that would run in background on each system boot.
This way link keys would always stay in sync without having to manually run the program.

It could be done with either environment variables (comfy to use in a systemd service):

  • LINKWINBT_CONTROLLER=DE:AD:BE:EF:13:37
  • LINKWINBT_DEVICE=B0:0B:CA:FE:69:67

Or via cmdline args, the same way as with -dry:
linkwinbt -controller DE:AD:BE:EF:13:37 -device B0:0B:CA:FE:69:67

The most important bit here is to allow passing all in these parameters, especially for device.
When all is passed, linkwinbt would iterate over all controllers/devices and sync their keys.

In my personal use case, non-interactive support for a single specific controller and all devices would be enough.
Some people might want all for controllers too.
Some might find it useful to be able to specify a fixed list comma-separated -controllers and -devices as well.

Go is my primary language and I would do a PR, but I'm not sure which way you'd prefer this to be implemented, if at all.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions