playerctl
Playerctl is a powerful command line tool for controlling media playback on Linux. It allows users to easily interact with various media players from the command line. With playerctl, you can play, pause, stop, and navigate through tracks without ever opening a media player's graphical interface. It supports a wide range of media players, including popular ones like Spotify, VLC, Rhythmbox, and more. The tool offers a simple and intuitive syntax, making it easy to incorporate into scripts or bind to custom keyboard shortcuts. Playerctl also provides metadata information for the currently playing track, such as title, artist, album, duration, and more, allowing for quick access to this information from the command line. Additionally, playerctl has support for MPRIS (Media Player Remote Interfacing Specification), a standard D-Bus interface for media players, ensuring compatibility across different players and environments.
List of commands for playerctl:
-
playerctl:tldr:54e59 playerctl: Send a command to a specific player.$ playerctl --player=${player_name} ${command}try on your machineexplain this command
-
playerctl:tldr:7d871 playerctl: Previous media.$ playerctl previoustry on your machineexplain this command
-
playerctl:tldr:8185b playerctl: Next media.$ playerctl nexttry on your machineexplain this command
-
playerctl:tldr:9f3d4 playerctl: Toggle play.$ playerctl play-pausetry on your machineexplain this command
-
playerctl:tldr:b78fc playerctl: List all players.$ playerctl --list-alltry on your machineexplain this command
-
playerctl:tldr:d1b93 playerctl: Send a command to all players.$ playerctl --all-players ${command}try on your machineexplain this command