LinuxCommandLibrary

cmus-remote

TLDR

Toggle play/pause

$ cmus-remote -u
copy
Play
$ cmus-remote -p
copy
Pause
$ cmus-remote -U
copy
Stop playback
$ cmus-remote -s
copy
Next track
$ cmus-remote -n
copy
Previous track
$ cmus-remote -r
copy
Seek forward 10 seconds
$ cmus-remote -k +10
copy
Set volume
$ cmus-remote -v [50]%
copy
Add file to queue
$ cmus-remote -q [file.mp3]
copy

SYNOPSIS

cmus-remote [options] [file|dir|playlist]

DESCRIPTION

cmus-remote is a remote control interface for cmus, the ncurses-based music player. It sends commands to a running cmus instance via socket connection.
The tool allows controlling playback, managing playlists, and querying player status from scripts or other applications. It's commonly used for media key bindings and status bar integrations.

PARAMETERS

-p, --play

Start playback.
-u, --pause
Toggle pause.
-U, --pause-playback
Pause without toggle.
-s, --stop
Stop playback.
-n, --next
Play next track.
-r, --prev
Play previous track.
-k seconds
Seek relative (+/-seconds).
-v volume
Set volume (absolute or +/-).
-q file
Add file to queue.
-c file
Add file to library.
-l file
Load playlist.
-S name
Toggle setting.
-Q
Query and print status.
-C command
Send raw cmus command.

CAVEATS

Requires running cmus instance. Socket permissions must allow connection. Some commands may not work if cmus is not playing.

HISTORY

cmus-remote is part of the cmus project, created by Timo Hirvonen in 2005. It provides scriptable control for the terminal-based music player, enabling integration with window managers, status bars, and multimedia keyboards.

SEE ALSO

cmus(1), mpd(1), mpc(1), playerctl(1)

Copied to clipboard