Giter Club home page Giter Club logo

mmtc's Introduction

mmtc

release version deps license ci

Minimal mpd terminal client that aims to be simple yet highly configurable

Installation

repology

The latest precompiled binaries are available on github.

Alternatively you can install mmtc from crates.io with cargo.

cargo install mmtc

Building from source

cargo build --release

Usage

Usage: mmtc [OPTIONS]

Options:
      --clear-query-on-play     Clear query on play
  -C, --cmd [<CMD>...]          Run mpd commands and exit
      --cycle                   Cycle through the queue
      --no-clear-query-on-play  Don't clear query on play
      --no-cycle                Don't cycle through the queue
      --address <address>       Specify the address of the mpd server
  -c, --config <file>           Specify the config file
      --jump-lines <number>     The number of lines to jump
      --seek-secs <number>      The time to seek in seconds
      --ups <number>            The amount of status updates per second
  -h, --help                    Print help information (use `--help` for more detail)
  -V, --version                 Print version information

Environment variables

Setting both MPD_HOST and MPD_PORT is the equalvalent of --address $MPD_HOST:$MPD_PORT

Precedence: command line arguments > environment variables > configuration file

Key bindings

Key Action
q or Ctrl + q quit mmtc
r toggle repeat
R toggle random
s toggle single
S toggle oneshot
c toggle consume
p toggle pause
; stop
h or Left seek backwards
l or Right seek forwards
H previous song
L next song
Enter play selected song or quit searching mode if in searching mode
Space select current song or the first song in the queue
j, Down, or ScrollDown go down in the queue
k, Up, or ScrollUp go up in the queue
J, Ctrl + d, or PageDown jump down in the queue
K, Ctrl + u, or PageUp jump up in the queue
g go to the top of the queue
G go to the bottom of the queue
/ enter searching mode
Ctrl + u empty search query
Escape quit searching mode and empty query

Configuration

See Configuration.md

Changelog

See CHANGELOG.md

mmtc's People

Contributors

dependabot[bot] avatar figsoda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mmtc's Issues

mmtc crashes when playlist file contains an url

If I have a playlist file which includes an audio(mp3) file with a http(s) URL, When I open mmtc, it crashes with the following error

Failed to disable mouse capture

Caused by:
    Initial console modes not set

I have tested with mpc and it is playing fine

OS: Windows 10
mmtc Version : 0.3.0

cargo install mmtc fails with import scope errors

at the compiling mmtc v0.2.14 step, the cargo build fails with a bunch of errors like this:

error: cannot find derive macro `Parser` in this scope
 --> /home/dried/.cargo/registry/src/github.com-1ecc6299db9ec823/mmtc-0.2.14/src/cli.rs:8:10
  |
8 | #[derive(Parser)]
  |          ^^^^^^
  |
note: `Parser` is imported here, but it is only a trait, without a derive macro
 --> /home/dried/.cargo/registry/src/github.com-1ecc6299db9ec823/mmtc-0.2.14/src/cli.rs:1:5
  |
1 | use clap::Parser;
  |     ^^^^^^^^^^^^

error: cannot find attribute `clap` in this scope
 --> /home/dried/.cargo/registry/src/github.com-1ecc6299db9ec823/mmtc-0.2.14/src/cli.rs:9:3
  |
9 | #[clap(version)]
  |   ^^^^
  |
  = note: `clap` is in scope, but it is a crate, not an attribute

add to queue support/library management support

This is more a question than an issue, I didn't find you anywhere else to ask. I would like to know if you plan to support some kind of library management? I mean there is no way to add songs to the queue using mmtc. Or am I missing something?

Thanks for developing this. I am using pms right now but mmtc seems more what I'd like if I could just use it exclusively.

MPD_HOST as socket

It would be great to add socket support when MPD_HOST environment variable set like this MPD_HOST=$HOME/.config/mpd/socket.

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.