CMUS-REMOTE(1)

๐Ÿ’– CMUS-REMOTE ๐Ÿ’–

okay bestie, welcome to the cmus-remote(1) page โ€” that's section 1 of the General Commands Manual, and it's literally the little remote control that talks to your cmus player. no cap.


โœจ NAME โœจ

cmus-remote โ€” control cmus ๐ŸŽ›๏ธ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

cmus-remote [OPTION]... [FILE|DIR|PLAYLIST]...
cmus-remote -C COMMAND...
cmus-remote

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so basically: you take a FILE, DIR or PLAYLIST and you add it to the playlist, the library (-l) or the play queue (-q). that's the vibe.

but here's the tea โ€” if you give it no arguments at all, cmus-remote goes and reads raw commands straight from stdin, one command per line. ๐Ÿ“ฅ and these raw commands? they're cmus' command mode commands โ€” the exact same ones you use in config files and key bindings. cmus(1) has the full list if you wanna go read it, bestie. and for consistency, searching is supported too: -C /text. ๐Ÿ”

and if you pass -C, then every single command line argument gets treated as a raw command. periodt.


๐Ÿ’… OPTIONS ๐Ÿ’…

  • --server SOCKET โ€” connect through socket SOCKET instead of the default $XDG_RUNTIME_DIR/cmus-socket. ๐Ÿ‘€
  • --passwd PASSWD โ€” the password to use for a TCP/IP connection. ๐Ÿ”
  • --help โ€” show usage info and dip out.
  • --version โ€” show version info and dip out.
  • -p, --play โ€” start playing. โ–ถ๏ธ
  • -u, --pause โ€” toggle pause. โฏ๏ธ
  • -U, --pause-playback โ€” pause it, but only if it's currently playing.
  • -s, --stop โ€” stop playing. ๐Ÿ›‘
  • -n, --next โ€” skip forward in the playlist. โญ๏ธ
  • -r, --prev โ€” skip backward in the playlist. โฎ๏ธ
  • -R, --repeat โ€” toggle repeat. ๐Ÿ”
  • -S, --shuffle โ€” toggle shuffle. ๐Ÿ”€
  • -v, --volume VOL โ€” change the volume. see the vol command in cmus(1). ๐Ÿ”Š
  • -k, --seek SEEK โ€” seek. see the seek command in cmus(1). โฉ
  • -f, --file FILE โ€” play from file.
  • -Q โ€” get player status info. same as -C status. note that status is a special command that's only available to cmus-remote, iykyk. ๐Ÿ“Š
  • -l, --library โ€” modify the library instead of the playlist.
  • -P, --playlist โ€” modify the playlist (this is the default, btw).
  • -q, --queue โ€” modify the play queue instead of the playlist.
  • -c, --clear โ€” clear the playlist, the library (-l) or the play queue (-q). ๐Ÿงน
  • -C, --raw โ€” treat the arguments (instead of stdin) as raw commands.

๐Ÿ‘‘ REMOTE COMMANDS ๐Ÿ‘‘

these are the special ones โ€” only available to cmus-remote. main character energy only.

  • status โ€” print info about the track that's currently playing. ๐ŸŽต
  • format_print โ€” print the arguments as Format Strings. each argument starts a new line. ๐Ÿ“

๐ŸŽ€ EXAMPLES ๐ŸŽ€

add playlists/files/directories/URLs to the library view (1 & 2):

$ cmus-remote -l music.m3u \
http://live.urn1350.net:8080/urn_high.ogg

load (clear and add) a playlist to the playlist view (3):

$ cmus-remote -c music.m3u

three different ways to toggle repeat, because we love options:

$ cmus-remote -R
$ cmus-remote -C "toggle repeat"
$ cmus-remote
toggle repeat
^D

query settings or key bindings:

$ cmus-remote -C "set repeat?"
setting: 'repeat=false'
$ cmus-remote -C "showbind common a"
bind common a win-add-l

dump the playlist to stdout:

$ cmus-remote -C "save -p -"
[...]

and yes, search works too:

$ cmus-remote -C /beatles

๐ŸŒˆ SEE ALSO ๐ŸŒˆ


๐Ÿ’œ AUTHOR ๐Ÿ’œ

written by Timo Hirvonen <tihirvon@gmail.com> ๐Ÿซถ


that's the whole page bestie, go forth and control your music ๐Ÿ’–

okay so this was cmus version 05/11/2006 of the CMUS-REMOTE(1) page, and that's the entire manual โ€” slay, you read all of it, I'm so proud of you ๐ŸŽ€โœจ