Skip to content

useless-utils/mpd-current-json

Repository files navigation

Print currently playing MPD’s song metadata and status as JSON

Installation

Packages are available:

  • in the AUR
  • in Hackage:
    cabal install mpd-current-json
        

or compile it from source:

git clone https://codeberg.org/useless-utils/mpd-current-json
cd mpd-current-json

to install the executable to ./dist, in the current directory:

cabal install --install-method=copy --overwrite-policy=always --installdir=dist

or to install to ${CABAL_DIR}/bin remove the --installdir=dist argument. CABAL_DIR defaults to ~/.local/share/cabal.

Usage

  • Get values
    mpd-current-json | jaq .tags.album
    mpd-current-json | jaq .status.elapsed_percent
        
  • Provide host and port with
    mpd-current-json -h 'localhost' -p 4321
        
  • Provide password
    mpd-current-json --password 'abc123'
        

    note that the password will be sent as plain text.

Run mpd-current-json --help for all the available options.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published