wiki/notebook/cli.mpc.org
Gabriel Arazas b088086b06 Merge evergreen notes into the notebook
Now, it's all under the notebook umbrella. Seems to be appropriate as it
is just my notes after all.

I also updated some notes from there. I didn't keep track of what it is
this time. Something about more learning notes extracted from my
"Learning how to learn" course notes and then some. Lack of time and
hurriness just makes it difficult to track but it should be under
version control already.
2021-07-21 16:28:07 +08:00

921 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 '{}'