altdesktop/playerctl
Free🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
About altdesktop/playerctl
Playerctl is a command-line utility and library for controlling media players that implement the MPRIS D-Bus Interface Specification. It allows users to bind playback actions (play, pause, stop, next, previous) to media keys, retrieve metadata about the currently playing track (artist, title), and control volume and position. The tool includes a daemon, playerctld, which automatically tracks the most recently active media player, enabling seamless control across multiple players. Supported players include VLC, mpv, RhythmBox, web browsers, cmus, mpd, Spotify, and others. Playerctl is open-source (MIT license) and designed for integration into statusline generators, scripts, and other command-line workflows.
Key Features
Pros & Cons
- Lightweight and fast, works entirely from the terminal
- Supports a wide range of MPRIS-compatible media players
- Includes a daemon for automatic active player tracking
- Open-source with permissive MIT license
- Easy to use with simple command syntax
- No GUI overhead ideal for headless or minimal setups
- Only works on Linux systems with D-Bus and MPRIS-compliant players
- No graphical user interface; entirely command-line based
- Limited functionality for players that do not fully implement MPRIS
- Requires some learning for advanced options like formatting and player selection