Linux command
climp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Play
climp --play [/path/to/song.mp3]
Play
climp --play [http://example.com/stream]
Create
climp --playlist [song1.mp3] [song2.mp3] --play
Add
climp --add [newsong.mp3] [myplaylist.m3u]
Set
climp --volume 80
Seek
climp --seek 1:30
Show
climp --current
Quit
climp --quit
说明
climp is a lightweight terminal-based music player written in C that uses a client-daemon architecture. The climp binary is a thin client that sends commands over a Unix domain socket to climpd, the background daemon that handles actual audio playback via GStreamer. If the daemon is not running when a command is issued, climp automatically spawns it. It supports local media files, network streams (web radio), and playlist management (.m3u and .txt formats). A companion utility climp-discover recursively discovers media files in directories for piping into climp.
参数
- --play _args_
- Start playback. Arguments can be media files, .m3u/.txt playlists, URIs, or a playlist index (0-based, negative indices supported).
- --add _files_
- Add media files or playlists to the current playlist.
- --playlist _args_
- Without args: print current playlist with metadata. With args: set a new playlist.
- --current, -c
- Show the currently playing track with position, duration, title, artist, album.
- --next, -n
- Play the next track in the playlist.
- --pause
- Toggle pause/unpause.
- --stop
- Stop playback.
- --volume _int_, -v
- Get or set the volume level.
- --seek _time_
- Seek to a position. Formats: m:ss, m.ss, or seconds.
- --speed _float_
- Get or set the playback speed.
- --pitch _float_
- Get or set the playback pitch.
- --shuffle _bool_
- Set playlist shuffle on or off.
- --repeat _bool_
- Set playlist repeat on or off.
- --mute _bool_, -m
- Toggle mute or set on/off.
- --clear
- Clear the current playlist.
- --remove _indices_
- Remove tracks from the playlist by index.
- --sort
- Sort the playlist alphabetically by file path.
- --stdin, -i
- Read playlist entries from stdin for piping.
- --quit, -q
- Shut down the climpd daemon.
FAQ
What is the climp command used for?
climp is a lightweight terminal-based music player written in C that uses a client-daemon architecture. The climp binary is a thin client that sends commands over a Unix domain socket to climpd, the background daemon that handles actual audio playback via GStreamer. If the daemon is not running when a command is issued, climp automatically spawns it. It supports local media files, network streams (web radio), and playlist management (.m3u and .txt formats). A companion utility climp-discover recursively discovers media files in directories for piping into climp.
How do I run a basic climp example?
Run `climp --play [/path/to/song.mp3]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --play _args_ do in climp?
Start playback. Arguments can be media files, .m3u/.txt playlists, URIs, or a playlist index (0-based, negative indices supported).