wiki/structured/cli.mpc.org
Gabriel Arazas edc686c25c Update wiki on various topics
This update is too large, I made too many notes on stuff. Nonetheless,
it is very nice to see progress. I've made note revisions on the
following topics:

- Learning
- Writing
- Various Linux-related stuff

I've yet to start learning illustration but I'll be starting tomorrow
for an update how do I keep in mind with those writings. There are still
a lot of things to be processed from the backlog with yet more notes on
learning but I keep having those perspectives whenever I practice so
ehhh... Better have those than nothing?

Furthermore, I've also updated the timestamp format. It is pretty simple
to update all of the notes with a couple of `sed` calls.

Aaaand, I've also changed the way how the assets stored with the folders
only leaving it up for the generated files instead of enforcing it on
every note. I create more visual aids and managing them is a pain for
each note. This restructuring frees me of that burden.
2021-07-20 19:52:43 +08:00

854 B

Command line: mpc

mpc is a command line client for the Music Player Daemon (MPD). Pretty nifty for controlling it in the command line and a bit of automation.

Subcommands

The subcommands mainly deals with interacting with the server, letting you play and manage your music in the command line!

  • listall lists all of the recognized files from the music directory.
  • play play the playlist from the server.
  • add [FILES...] add the files (that are in the music directory) to the playlist.

Examples

Welp, it's a music daemon client so it should be simple enough.

Randomized playlist

Even more useful if you schedule it.

mpc listall | shuf --head-count 10 | xargs --replace='{}' mpc add '{}'