2021-07-21 08:28:07 +00:00
|
|
|
:PROPERTIES:
|
|
|
|
:ID: 48b5a4a7-58ae-4e3e-a310-0679e909941f
|
|
|
|
:END:
|
2021-06-30 14:42:04 +00:00
|
|
|
#+title: Command line: mpc
|
|
|
|
#+date: "2021-06-22 19:10:53 +08:00"
|
2021-07-21 08:28:07 +00:00
|
|
|
#+date_modified: "2021-07-20 23:31:22 +08:00"
|
2021-06-30 14:42:04 +00:00
|
|
|
#+language: en
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-20 11:52:43 +00:00
|
|
|
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-30 14:42:04 +00:00
|
|
|
* Examples
|
|
|
|
|
|
|
|
Welp, it's a music daemon client so it should be simple enough.
|
|
|
|
|
|
|
|
|
2021-07-20 11:52:43 +00:00
|
|
|
** Randomized playlist
|
|
|
|
|
|
|
|
Even more useful if you schedule it.
|
2021-06-30 14:42:04 +00:00
|
|
|
|
|
|
|
#+begin_src shell
|
|
|
|
mpc listall | shuf --head-count 10 | xargs --replace='{}' mpc add '{}'
|
|
|
|
#+end_src
|