packages feed

mpd-current-json-1.3.0.0: README.org

#+TITLE: Print currently playing MPD's song metadata and status as JSON
# #+PROPERTY: header-args :comments org
#+OPTIONS: toc:1

* Installation
Packages are available:
- [[https://aur.archlinux.org/packages/mpd-current-json][in the AUR]]
- in Hackage:
  : cabal install mpd-current-json

or compile it from source:
#+begin_example
git clone https://codeberg.org/useless-utils/mpd-current-json
cd mpd-current-json
#+end_example
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.