playerctl is a command-line tool for controlling media players that expose the MPRIS interface on Linux desktops. It lets you play, pause, skip tracks and read the current track from a terminal or a script. It is aimed at people who bind media keys, build status bars or automate playback from the shell.
It works with players such as VLC, mpv, Rhythmbox, cmus, mpd and Spotify, along with web browsers that publish MPRIS data. The source code is public under the LGPL-3.0 license, and the tool is free to use.
Alternatives to playerctl
Products that do a similar job in Audio & Music.
spotify-player
Terminal music player for Spotify with a full-screen interface
Decibels
Minimal player for local audio files with waveform and speed control
musikcube
keyboard-driven music player for the terminal
foobar2000
Lightweight audio player for Mac with a customisable interface
Amberol
Simple player for music stored on your own computer
ytmdl
Command-line tool that saves YouTube audio as MP3 files with song tags
kew
Terminal music player for listening to local music from the command line
Goodvibes
Internet radio player for GNU/Linux desktops