Giter Club home page Giter Club logo

mdrop's Introduction

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.

mdrop's People

Contributors

frahz avatar

Stargazers

Luke Dearden avatar

Watchers

Luke Dearden avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.