rhythmbox-client(1)
Control Rhythmbox music player from the command line or send files to play.
Synopsis
rhythmbox-client [OPTION]... [FILES]...Description
rhythmbox-client is a command-line interface to the Rhythmbox music player. It allows you to control playback, query player status, manage the library, and enqueue or play music files without opening the GUI. If Rhythmbox is not running, this tool can start it in the background.
You can use it to play files, skip tracks, pause, print now-playing information, and interact with playlists. This is useful for scripting, hotkeys, and automation.
Common options
| Flag | What it does |
|---|---|
--play | Start playback or resume if paused |
--pause | Pause playback |
--stop | Stop playback |
--next | Skip to next track |
--previous | Skip to previous track |
--print-playing | Print the currently playing song (artist, album, title) |
--print-playing-format=FORMAT | Print now-playing info with custom format (%at, %aa, %as, %an) |
--enqueue | Add files to queue instead of playing immediately |
--clear-queue | Clear the current play queue |
--set-volume=LEVEL | Set volume to 0-100 percent |
--no-start | Do not start Rhythmbox if not running |
--version | Show version information |
Examples
Play a specific music file
rhythmbox-client ~/Music/song.mp3Display the currently playing song with artist and album
rhythmbox-client --print-playingPrint now-playing info in custom format (artist - album)
rhythmbox-client --print-playing-format='%aa - %at'Skip to the next track
rhythmbox-client --nextPause music for 30 seconds, then resume
rhythmbox-client --pause && sleep 30 && rhythmbox-client --playAdd all MP3 files in current directory to the queue
rhythmbox-client --enqueue *.mp3Set volume to 50%
rhythmbox-client --set-volume=50Play if Rhythmbox is running; do not launch it if it isn't
rhythmbox-client --no-start --play