Skip to content
/ mdrop Public

Linux CLI tool for controlling Moondrop USB audio dongles.

License

Notifications You must be signed in to change notification settings

frahz/mdrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdrop CLI tool

Linux CLI tool for controlling Moondrop USB audio dongles.

Usage

$ 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

Example

$ mdrop devices
┌───────────────────┬───────┬────────┐
│ Name              │ Bus   │ Volume │
├───────────────────┼───────┼────────┤
│ Moondrop Dawn Pro │ 03:07 │    66% │
└───────────────────┴───────┴────────┘

Supported devices

  • Moondrop Dawn Pro
  • Moondrop Dawn 3.5mm (not tested)
  • Moondrop Dawn 4.4mm (not tested)

Install

Requirements

You will need the following udev rules to be able to communicate with the dongle:

SUBSYSTEM=="usb", ATTRS{idVendor}=="2fc6", MODE="0666"

Nix

TBD(no package currently present):

nix run github:frahz/mdrop

TODO List

  • Add option to specify device to configure using bus and address number (because Moondrop doesn't give unique serial ids to the dongles)
  • Make some command output look nicer (get volume and get)
  • Use Result for error handling cases when device is not connected, so that we don't show some output
  • Better error handling instead of unwraping everything.

About

Linux CLI tool for controlling Moondrop USB audio dongles.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published