Music text banner

playerctl – MPRIS media player command-line controller

Playerctl is a command-line utility and library for controlling media players that implement the MPRIS D-Bus Interface Specification. It provides a consistent way to work with compatible media players without needing player-specific commands.

It is particularly useful for binding playback actions to media keys, integrating track information into status bars, and scripting media-player behaviour. The accompanying playerctld daemon keeps track of player activity so commands can be directed to the most recently active player.

This is free and open source software.

Key Features

  • Play, pause, stop, resume, and toggle playback.
  • Skip to the next or previous track.
  • Seek to an absolute position or move forwards and backwards within a track.
  • Read and change player volume.
  • Query playback status and track metadata.
  • Open local files and remote media URLs in supported players.
  • Control loop and shuffle settings.
  • Select individual players, prioritised groups of players, or all available players.
  • Ignore selected players when choosing a target.
  • Format metadata and property output using templates and helper functions.
  • Follow metadata, position, volume, and status changes continuously.
  • Includes playerctld, which orders players according to recent activity.
  • Provides a library with GObject introspection support for use from other programming languages.

Website: github.com/altdesktop/playerctl
Support:
Developer: playerctl contributors
License: GNU Lesser General Public License v3.0

playerctl options

playerctl is written in C. Learn C with our recommended free books and free tutorials.


Related Software

MPRIS Tools
playerctlMPRIS media player command-line controller
mpris-ctlMinimalistic command-line interface tool for controlling audio players
mpv-mprismpv plugin to control the player using standard media keys
mpd-mprisMPRIS protocol for MPD
mprisenceBridges MPRIS-compatible media players
empressMPRIS media controls made simple
mpris-scrobblerMinimalistic user daemon
MPRIS MiniPlayerDisplays whatever media in a MPRIS compatible player is playing.
mpdris2-rsExpose MPD playback through MPRIS2

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted