Linux command
cmus-remote 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Toggle play/pause
cmus-remote -u
Play
cmus-remote -p
Pause
cmus-remote -U
Stop playback
cmus-remote -s
Next track
cmus-remote -n
Previous track
cmus-remote -r
Seek forward
cmus-remote -k +10
Set volume
cmus-remote -v [50]%
Add file to queue
cmus-remote -q [file.mp3]
说明
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.
参数
- -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.
FAQ
What is the cmus-remote command used for?
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.
How do I run a basic cmus-remote example?
Run `cmus-remote -u` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --play do in cmus-remote?
Start playback.