commands.sh

playerctl

linux

Control media players via MPRIS.

More info →

Options (4)

-l, --list-allboolean

List all players

Example: playerctl {{[-l|--list-all]}}
-p, --playerboolean

Send a command to a specific player

Example: playerctl {{[-p|--player]}} {{player_name}} {{play-pause|next|previous|...}}
-a, --all-playersboolean

Send a command to all players

Example: playerctl {{[-a|--all-players]}} {{play-pause|next|previous|...}}
-f, --formatboolean

Display metadata about the current track

Example: playerctl metadata {{[-f|--format]}} "{{Now playing: \{\{artist\}\} - \{\{album\}\} - \{\{title\}\}}}"

Examples (7)

Toggle play

playerctl play-pause

Skip to the next track

Go back to the previous track

playerctl previous

List all players

playerctl [-l|--list-all]

Send a command to a specific player

playerctl [-p|--player] player_name play-pause|next|previous|...

Send a command to all players

playerctl [-a|--all-players] play-pause|next|previous|...

Display metadata about the current track

playerctl metadata [-f|--format] "{{Now playing: \{\{artist\}\} - \{\{album\}\} - \{\{title\}\}}}"
made by @shridhargupta | data from tldr-pages