LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

cmus-remote

remote control interface for cmus music player

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.

INSTALL

sudo apt install cmus
copy
sudo pacman -S cmus
copy
sudo apk add cmus
copy
sudo zypper install cmus
copy
brew install cmus
copy
nix profile install nixpkgs#cmus
copy

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)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid