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