2025-03-14 21:59:59 -06:00
|
|
|
# playerctl
|
|
|
|
|
|
|
|
|
|
> Control media players via MPRIS.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://github.com/altdesktop/playerctl#using-the-cli>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Toggle play:
|
|
|
|
|
|
|
|
|
|
`playerctl play-pause`
|
|
|
|
|
|
|
|
|
|
- Skip to the next track:
|
|
|
|
|
|
|
|
|
|
`playerctl next`
|
|
|
|
|
|
|
|
|
|
- Go back to the previous track:
|
|
|
|
|
|
|
|
|
|
`playerctl previous`
|
|
|
|
|
|
|
|
|
|
- List all players:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`playerctl {{[-l|--list-all]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Send a command to a specific player:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`playerctl {{[-p|--player]}} {{player_name}} {{play-pause|next|previous|...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Send a command to all players:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`playerctl {{[-a|--all-players]}} {{play-pause|next|previous|...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display metadata about the current track:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`playerctl metadata {{[-f|--format]}} "{{Now playing: \{\{artist\}\} - \{\{album\}\} - \{\{title\}\}}}"`
|