2018-02-14 20:14:25 +00:00
|
|
|
# playerctl
|
|
|
|
|
2023-11-30 18:09:30 +00:00
|
|
|
> Control media players via MPRIS.
|
2020-04-30 21:04:45 +01:00
|
|
|
> More information: <https://github.com/altdesktop/playerctl>.
|
2018-02-14 20:14:25 +00:00
|
|
|
|
|
|
|
- Toggle play:
|
|
|
|
|
|
|
|
`playerctl play-pause`
|
|
|
|
|
2023-11-30 18:09:30 +00:00
|
|
|
- Skip to the next track:
|
2018-02-14 20:14:25 +00:00
|
|
|
|
|
|
|
`playerctl next`
|
|
|
|
|
2023-11-30 18:09:30 +00:00
|
|
|
- Go back to the previous track:
|
2018-02-14 20:14:25 +00:00
|
|
|
|
|
|
|
`playerctl previous`
|
|
|
|
|
|
|
|
- List all players:
|
|
|
|
|
|
|
|
`playerctl --list-all`
|
|
|
|
|
|
|
|
- Send a command to a specific player:
|
|
|
|
|
2023-11-30 18:09:30 +00:00
|
|
|
`playerctl --player {{player_name}} {{play-pause|next|previous|...}}`
|
2018-02-14 20:14:25 +00:00
|
|
|
|
|
|
|
- Send a command to all players:
|
|
|
|
|
2023-11-30 18:09:30 +00:00
|
|
|
`playerctl --all-players {{play-pause|next|previous|...}}`
|
2020-04-07 02:24:51 +01:00
|
|
|
|
2023-11-30 18:09:30 +00:00
|
|
|
- Display metadata about the current track:
|
2020-04-07 02:24:51 +01:00
|
|
|
|
2023-11-30 18:09:30 +00:00
|
|
|
`playerctl metadata --format "{{Now playing: \{\{artist\}\} - \{\{album\}\} - \{\{title\}\}}}"`
|