Linux CLI tool for controlling Moondrop USB audio dongles.
$ mdrop --help
A tool to control your Moondrop dongle
Usage: mdrop [OPTIONS] <COMMAND>
Commands:
get Gets status of Moondrop dongle
set Sets various values in your Moondrop dongle
devices Lists all the Moondrop dongles connected to the PC
help Print this message or the help of the given subcommand(s)
Options:
-s <DEVICE> specify target device, by using the USB bus number, to which the command should be directed, ex. `03:02`
-h, --help Print help
$ mdrop devices
┌───────────────────┬───────┬────────┐
│ Name │ Bus │ Volume │
├───────────────────┼───────┼────────┤
│ Moondrop Dawn Pro │ 03:07 │ 66% │
└───────────────────┴───────┴────────┘
- Moondrop Dawn Pro
- Moondrop Dawn 3.5mm (not tested)
- Moondrop Dawn 4.4mm (not tested)
You will need the following udev rules to be able to communicate with the dongle:
SUBSYSTEM=="usb", ATTRS{idVendor}=="2fc6", MODE="0666"
TBD(no package currently present):
nix run github:frahz/mdrop
- Add option to specify device to configure using
bus
andaddress
number (because Moondrop doesn't give unique serial ids to the dongles) - Make some command output look nicer (
get volume
andget
) - Use
Result
for error handling cases when device is not connected, so that we don't show some output - Better error handling instead of
unwrap
ing everything.